8000 bug #52406 [Validator] Fix `Constraints\Email::ERROR_NAMES` (mathroc) · symfony/symfony@a422dfc · GitHub
[go: up one dir, main page]

Skip to content

Commit a422dfc

Browse files
bug #52406 [Validator] Fix Constraints\Email::ERROR_NAMES (mathroc)
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
2 parents 4fee3d9 + be0bc27 commit a422dfc

File tree

1 file changed

+1
-1
lines changed
  • src/Symfony/Component/Validator/Constraints

1 file changed

+1
-1
lines changed

src/Symfony/Component/Validator/Constraints/Email.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ class Email extends Constraint
3232
public const INVALID_FORMAT_ERROR = 'bd79c0ab-ddba-46cc-a703-a7a4b08de310';
3333

3434
protected static $errorNames = [
35-
self::INVALID_FORMAT_ERROR => 'STRICT_CHECK_FAILED_ERROR',
35+
self::INVALID_FORMAT_ERROR => 'INVALID_FORMAT_ERROR',
3636
];
3737

3838
/**

0 commit comments

Comments
 (0)
0