Skip to content

Conversation

@ReeceG
Copy link

@ReeceG ReeceG commented Dec 3, 2025

This is the new method that prevents the following deprecation message:
Since symfony/validator 7.4: Support for evaluating options in the base Constraint class is deprecated. Initialize properties in the constructor of App\Validator\Custom instead
Honestly I don't totally understand what the "mode" option/variable in the 2nd and 3rd examples is doing so I'm not sure if some other change needs to be made for those ones.

@ReeceG ReeceG requested a review from xabbuh as a code owner December 3, 2025 18:00
@carsonbot carsonbot added this to the 6.4 milestone Dec 3, 2025
@carsonbot carsonbot changed the title Fix parent constructor call to use null instead of empty array Fix parent constructor call to use null instead of empty array Dec 3, 2025
@stof
Copy link
Member

stof commented Dec 3, 2025

Honestly I don't totally understand what the "mode" option/variable in the 2nd and 3rd examples is doing so I'm not sure if some other change needs to be made for those ones.

Those are examples of settings support by that custom constraint.

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.

4 participants