-
-
Notifications
You must be signed in to change notification settings - Fork 9.8k
[Validator] Allow single constraint to be passed to the constraints option of the When constraint
#50425
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
[Validator] Allow single constraint to be passed to the constraints option of the When constraint
#50425
Conversation
92ec392 to
81a6786
Compare
|
Symfony doesn't do backward-incompatible changes without deprecating first, this should target 6.4 and provide BC layers if/where needed. |
|
AFAICT there is no BC break here, this should be fine as-is on 6.4. |
I agree, as it is widening the type |
81a6786 to
af04cb5
Compare
|
I thought again about it, you're right, it shouldn't cause any issue as it is in the constructor. Thank you both 🙏 |
|
This PR should be put on hold until we settle on #50396 (comment) |
… option of the `When` constraint
af04cb5 to
c59a629
Compare
|
Thank you @alexandre-daubois. |
It would be nice for the DX to allow passing a single constraint to
When, allowing to write the following: