Skip to content

[Validator] Calling enableAnnotationMapping without argument is deprecated #15256

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

l-vo
Copy link
Contributor

@l-vo l-vo commented Apr 18, 2021

Since 5.2, first argument of enableAnnotationMapping must be set to true (https://github.com/symfony/symfony/blob/v5.2.0/src/Symfony/Component/Validator/ValidatorBuilder.php#L227)

Closes #14522 (I guess).

@l-vo l-vo requested a review from xabbuh as a code owner April 18, 2021 12:26
@carsonbot carsonbot changed the title Calling enableAnnotationMapping without argument is deprecated [Validator] Calling enableAnnotationMapping without argument is deprecated Apr 20, 2021
@javiereguiluz javiereguiluz added this to the 5.2 milestone Apr 20, 2021
@javiereguiluz javiereguiluz merged commit 61a7680 into symfony:5.2 Apr 20, 2021
@javiereguiluz
Copy link
Member

Good catch! Thanks Laurent!

@l-vo l-vo deleted the enableAnnotationMapping_without_args_deprecated branch April 20, 2021 15:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants