-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[Validator] Fix constraints deprecations #59561
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
@@ -93,7 +93,7 @@ public function __construct( | |||
} | |||
|
|||
if ($options) { |
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.
shoudn't this be if (\is_array($options)) {
everywhere?
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.
I agree, otherwise an empty array will not trigger the deprecation. Should this be taken care in a separate PR or this one's fine?
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 one is fine
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.
It detected a missing test update, it should be good now
d4b37d1
to
d23909e
Compare
d23909e
to
89b7a2e
Compare
Thank you @alexandre-daubois. |
Small tweak after the recent merge when having a look at the commit 🙂
(see #54744)
cc @xabbuh