Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bug #33831 [Validator] Fix wrong expression language value (yceruto)
This PR was merged into the 4.4 branch. Discussion ---------- [Validator] Fix wrong expression language value | Q | A | ------------- | --- | Branch? | 4.4 | Bug fix? | yes | New feature? | no | Deprecations? | no | Tickets | - | License | MIT | Doc PR | - https://github.com/symfony/symfony/blob/766162c4c790cc0b91185963b9c36b842bf2eb49/src/Symfony/Component/Validator/Constraints/ExpressionValidator.php#L28 ```php (new ExpressionValidator($propertyAccessor))->validate($object, $constraint); ``` Based on the previous method signature (4.3 above), that code would result in an exception in 4.4: ``` Call to undefined method Symfony\Component\PropertyAccess\PropertyAccessor::evaluate() ``` Spotted by @fancyweb in #33829 (comment) Fixed here and updated test case to avoid regression. Commits ------- 4288f1c Fix wrong expression language value
- Loading branch information