-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[Validator] remove deprecated features #22795
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] remove deprecated features #22795
Conversation
xabbuh
commented
May 20, 2017
Q | A |
---|---|
Branch? | master |
Bug fix? | no |
New feature? | no |
BC breaks? | yes |
Deprecations? | no |
Tests pass? | yes |
Fixed tickets | |
License | MIT |
Doc PR |
900b5a9
to
cd5c7aa
Compare
@@ -59,7 +59,7 @@ public function validate($value, Constraint $constraint) | |||
} | |||
|
|||
if (false === $constraint->strict) { | |||
@trigger_error('Setting the strict option of the Choice constraint to false is deprecated since version 3.2 and will be removed in 4.0.', E_USER_DEPRECATED); | |||
throw new \RuntimeException('The "strict" option of the Choice constraint should not be used.'); |
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.
You can remove the entire option right? given
... and will be removed in 4.0.
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.
We cannot completely remove the option as that would break code that was valid in 3.4 (as the base Constraint
class would complain about an unknown option while setting the strict
option to true
is the forward compatible change to be made in 3.x).
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.
we should remove any use of the "strict" property in the class, isn't it?
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.
indeed, done
cd5c7aa
to
ad7a3cb
Compare
FC layer missing in 3.4? |
|
see #22815 |
This PR was merged into the 3.4 branch. Discussion ---------- do not used deprecated validator test case class | Q | A | ------------- | --- | Branch? | 3.4 | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | #22795 (comment) | License | MIT | Doc PR | Commits ------- f20885e do not used deprecated validator test case class
ad7a3cb
to
46c9101
Compare
tests are green, ready to be reviewed |
46c9101
to
bbd656b
Compare
Thank you @xabbuh. |
This PR was merged into the 4.0-dev branch. Discussion ---------- [Validator] remove deprecated features | Q | A | ------------- | --- | Branch? | master | Bug fix? | no | New feature? | no | BC breaks? | yes | Deprecations? | no | Tests pass? | yes | Fixed tickets | | License | MIT | Doc PR | Commits ------- bbd656b [Validator] remove deprecated features