You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description
When form with object $data type ArrayAccess (example Doctrine ArrayCollection) is validate and the field use 'property_path' => '[key]', is generated wrong validation path -> [[key]].
How to reproduce
Create a form with data type ArrayCollection and add field with property_path => '[key]'. Then insert wrong value and validate.
Symfony version(s) affected: 4.4
Description
When form with object $data type ArrayAccess (example Doctrine ArrayCollection) is validate and the field use 'property_path' => '[key]', is generated wrong validation path -> [[key]].
How to reproduce
Create a form with data type ArrayCollection and add field with property_path => '[key]'. Then insert wrong value and validate.
Here a piece of wrong code (in my opinion)
symfony/src/Symfony/Component/Form/Extension/Validator/Constraints/FormValidator.php
Line 103 in 879e68c
The text was updated successfully, but these errors were encountered: