-
-
Notifications
You must be signed in to change notification settings - Fork 9.7k
Description
Symfony version(s) affected
v6.2.8
Description
Hello! I just updated all of my dependencies to v6.2.8 and now the Expression-Validator is broken.
It is probably because of the missing alias validator.expression
, removed here:
The Expression-Class uses it here:
https://github.com/symfony/validator/blob/6.2/Constraints/Expression.php#L88
The Error that I get from PHPUnit Test is:
Symfony\Component\Validator\Exception\ValidatorException : Constraint validator "validator.expression" does not exist or is not enabled. Check the "validatedBy" method in your constraint class "Symfony\Component\Validator\Constraints\Expression".
Or am I missing something?
Thanks you very much!
How to reproduce
Update to v6.2.8 and use the Expression Validation like:
#[Expression(expression: 'not (value starts with "01")', message: 'Porting-Prefix is Mobile')]
Run a PHPUnit-Test
Possible Solution
No response
Additional Context
No response