Closed
Description
Symfony version(s) affected
7.0.5
Description
In file src/Symfony/Component/Validator/Constraints/File.php are error codes and error names defined. But they are not matching: in ERROR_NAMES the error code INVALID_EXTENSION_ERROR is missing. There for the code runs into an error in src/Symfony/Component/Validator/Constraint.php line 77 -> InvalidArgumentException
How to reproduce
Validate a file on file extensions.
Possible Solution
Add missing error name.
Additional Context
No response