Skip to content

Commit

Permalink
bug #52406 [Validator] Fix Constraints\Email::ERROR_NAMES (mathroc)
Browse files Browse the repository at this point in the history
This PR was merged into the 5.4 branch.

Discussion
----------

[Validator] Fix `Constraints\Email::ERROR_NAMES`

| Q             | A
| ------------- | ---
| Branch?       | 5.4
| Bug fix?      | yes
| New feature?  | no
| Deprecations? | no
| Issues        |
| License       | MIT

`Constraint\Email::ERROR_NAMES` contains `"STRICT_CHECK_FAILED_ERROR"` but there's no constant with that name, it's `"INVALID_FORMAT_ERROR"`

Commits
-------

be0bc27 fix Constraints\Email::ERROR_NAMES
  • Loading branch information
nicolas-grekas committed Dec 29, 2023
2 parents 4fee3d9 + be0bc27 commit a422dfc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Symfony/Component/Validator/Constraints/Email.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ class Email extends Constraint
public const INVALID_FORMAT_ERROR = 'bd79c0ab-ddba-46cc-a703-a7a4b08de310';

protected static $errorNames = [
self::INVALID_FORMAT_ERROR => 'STRICT_CHECK_FAILED_ERROR',
self::INVALID_FORMAT_ERROR => 'INVALID_FORMAT_ERROR',
];

/**
Expand Down

0 comments on commit a422dfc

Please sign in to comment.