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
This PR was merged into the 5.3 branch.
Discussion
----------
[Validator] Fix Choice constraint with associative choices array
| Q | A
| ------------- | ---
| Branch? | 5.3
| Bug fix? | yes
| New feature? | no
| Deprecations? | no
| Tickets | Fixsymfony#41508
| License | MIT
| Doc PR | N/A
This PR moves the `$options` parameter to the beginning of the constructor signature in order to fix the scenario described in symfony#41508.
I assume that the supported ways to construct this class are either an ordered arguments call with exactly one argument or a named argument call with zero or one ordered arguments. Those scenarios should continue to work and are covered with additional tests now.
However, an ordered arguments call to the constructor with at least two parameters would break after this change.
Commits
-------
ccd85fe Fix Choice constraint with associative choices array
0 commit comments