You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
bug #45696 Make FormErrorIterator generic (VincentLanglet)
This PR was squashed before being merged into the 5.4 branch.
Discussion
----------
Make FormErrorIterator generic
| Q | A
| ------------- | ---
| Branch? | 5.4
| Bug fix? | yes/no
| New feature? | yes/no
| Deprecations? | no
| Tickets | Fix #... <!-- prefix each issue number with "Fix #", no need to create an issue if none exist, explain below instead -->
| License | MIT
| Doc PR | symfony/symfony-docs#... <!-- required for new features -->
I target 5.4, since it's a follow up of #45322 which introduced some errors in my code.
It allows to typehint the `Form::getErrors` method to return `FormErrorIterator<FormError>` most of the time (which is possible by psalm/phpstan plugins with ReturnTypeProviders).
Commits
-------
08ddac5 Make FormErrorIterator generic
0 commit comments