-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[Validator] Override the default option of the choice constraint #39002
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(AppVeyor failure is unrelated and fabbot doesn't like PHP 8 attributes yet)
i just saw that we have a special key inside the $options array |
src/Symfony/Component/Validator/Tests/Fixtures/ConstraintChoiceWithPreset.php
Outdated
Show resolved
Hide resolved
Yes, |
Oh, for the two new files: Can you please add the usual file header ( |
…traint Co-authored-by: Maxime Steinhausser <maxime.steinhausser@gmail.com>
fdd640e
to
d553750
Compare
Thank you Benjamin. |
We have a bundle that run test against the last version of symfony and we detect BC Break when passing a string as the first argument of the class Choice
Our code extends the Choice class and change the defaultOption.
I saw that others constraints class had new construct signature (for php8 attributes), but only some of them kept the array options as their first arguments. Why ?
ping @ogizanagi @derrabus
https://travis-ci.com/github/Elao/PhpEnums/jobs/410045368