Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork9.7k
[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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
ogizanagi left a comment
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)
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
benji07 commentedNov 6, 2020
i just saw that we have a special key inside the $options array |
src/Symfony/Component/Validator/Tests/Fixtures/ConstraintChoiceWithPreset.php OutdatedShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
derrabus commentedNov 6, 2020
Yes, |
derrabus commentedNov 6, 2020
Oh, for the two new files: Can you please add the usual file header ( |
…traintCo-authored-by: Maxime Steinhausser <maxime.steinhausser@gmail.com>
fdd640e tod553750Compareogizanagi commentedNov 7, 2020
Thank you Benjamin. |
Uh oh!
There was an error while loading.Please reload this page.
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