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] Added the missing constraints instance checks#29223
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
[Validator] Added the missing constraints instance checks#29223
Uh oh!
There was an error while loading.Please reload this page.
Conversation
ro0NL commentedNov 14, 2018
i think we should target master for this, as a new feature. IMHO a deprecation is not really worth it, so 👍 for throwing. |
stof commentedNov 14, 2018
Well, the code of the validator already expects the right class due to property being used. So these are about providing a good error message in case you mess your project configuration, but it probably already does not work (with a crappier error message) in case of such mess. |
ro0NL commentedNov 14, 2018
@stof unless someone completely mimics the exepcted api with its own constraint class :} |
nicolas-grekas commentedNov 15, 2018
Thank you@thomasbisignani. |
…(thomasbisignani)This PR was merged into the 2.8 branch.Discussion----------[Validator] Added the missing constraints instance checks| Q | A| ------------- | ---| Branch? | 2.8| Bug fix? | yes| New feature? | no| BC breaks? | no| Deprecations? | no| Tests pass? | yes| Fixed tickets || License | MIT| Doc PR |This PR adds the constraints instance checks missing to limit the validators use.This behavior is already implemented in all built-in validators, but it was missed in two validators.Commits-------0ecaead [Validator] Added the missing constraints instance checks
This PR adds the constraints instance checks missing to limit the validators use.
This behavior is already implemented in all built-in validators, but it was missed in two validators.