Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

ERROR_NAME missing in Costraints\File.php #54170

Copy link
Copy link
Closed
@LukasOcy

Description

@LukasOcy
Issue body actions

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.