-
-
Notifications
You must be signed in to change notification settings - Fork 950
fix(symfony): fix resolving groups in ValidationGroupsExtractorTrait when GroupSequence #7272
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
| } | ||
|
|
||
| if (!$validationGroups instanceof GroupSequence) { | ||
| $validationGroups = (array) $validationGroups; |
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.
But passing array of groups is not the same as passing GroupSequence 🤔
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.
This is just a revert of changes made in #7184
This condition says - if $validationGroups is not an instance of GroupSequence, make it an array.
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.
Oh right,read it wrong 🤦♂️
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.
Yes, yes ) Yesterday I did the same ))
|
Thanks @alexndlm ! |
| private readonly ValidatorMetadataFactoryInterface $validatorMetadataFactory, | ||
| private readonly PropertyMetadataFactoryInterface $decorated, | ||
| private readonly iterable $restrictionsMetadata = [], | ||
| ?ContainerInterface $container = null, |
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.
this is a bc but as it was tagged like a week ago and we revert it impacts should be negligible.
|
Thank you @alexndlm ! |
Relates to #7184