-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
Closed
Description
Symfony version(s) affected
6.2.8
Description
The way validator.expression
is registered has changed, which causes ValidatorException when Expression
constraint is used:
symfony/framework-bundle@v6.2.7...v6.2.8#diff-51cca25b9f344e04d253bf67d646ddaf82a361541effdf554dce3f6d2080dc66R76-R78
How to reproduce
- Create an Expression constraint in the app
- Perform an action to run validation logic
- Exception is thrown
Possible Solution
Remove this method:
symfony/src/Symfony/Component/Validator/Constraints/Expression.php
Lines 86 to 89 in ff361c8
public function validatedBy(): string | |
{ | |
return 'validator.expression'; | |
} |
Additional Context
andrepimpao, JokubasR, NoResponseMate, BafS and TheMilek