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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy