Closed
Description
Symfony version(s) affected: 4.4
Description
/form/Extension/Validator/Constraints/FormValidator.php at line 123: in some cases $constraints->groups does not exist. in_array() throws a fatal error in PHP8.0
How to reproduce
Possible Solution
Adding an extra condition if $constraint->groups exists (or is an array)
It is not clear to me how the validator works, so this may be due to form setup. Still, PHP7.4 accepted it PHP8.0 not.
Metadata
Metadata
Assignees
Labels
DX = Developer eXperience (anything that improves the experience of using Symfony)DX = Developer eXperience (anything that improves the experience of using Symfony)