8000 Revert fabbot unrelated cs + change node name to html5-allow-no-tld · symfony/symfony@d0da11d · GitHub
[go: up one dir, main page]

Skip to content

Commit d0da11d

Browse files
committed
Revert fabbot unrelated cs + change node name to html5-allow-no-tld
1 parent 4ce5611 commit d0da11d

File tree

3 files changed

+2
-5
lines changed

3 files changed

+2
-5
lines changed

src/Symfony/Component/Validator/CHANGELOG.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ CHANGELOG
44
6.2
55
---
66

7-
* Add option `Email::VALIDATION_MODE_HTML5_ALLOW_NO_TLD` with "allow-no-tld" e-mail validation mode, to match with the W3C official specification
7+
* Add option `Email::VALIDATION_MODE_HTML5_ALLOW_NO_TLD` with "html5-allow-no-tld" e-mail validation mode, to match with the W3C official specification
88
* Add method `getCause()` to `ConstraintViolationInterface`
99
* Add the `When` constraint and validator
1010
* Deprecate the "loose" e-mail validation mode, use "html5" instead

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

+1-2
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,14 @@
1818

1919
/**
2020
* @Annotation
21-
*
2221
* @Target({"PROPERTY", "METHOD", "ANNOTATION"})
2322
*
2423
* @author Bernhard Schussek <bschussek@gmail.com>
2524
*/
2625
#[\Attribute(\Attribute::TARGET_PROPERTY | \Attribute::TARGET_METHOD | \Attribute::IS_REPEATABLE)]
2726
class Email extends Constraint
2827
{
29-
public const VALIDATION_MODE_HTML5_ALLOW_NO_TLD = 'allow-no-tld';
28+
public const VALIDATION_MODE_HTML5_ALLOW_NO_TLD = 'html5-allow-no-tld';
3029
public const VALIDATION_MODE_HTML5 = 'html5';
3130
public const VALIDATION_MODE_STRICT = 'strict';
3231
/**

src/Symfony/Component/Validator/Tests/Constraints/EmailValidatorTest.php

-2
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,6 @@ public function getValidEmails()
8484

8585
/**
8686
* @group legacy
87-
*
8887
* @dataProvider getValidEmails
8988
* @dataProvider getEmailsOnlyValidInLooseMode
9089
*/
@@ -126,7 +125,6 @@ public function getValidEmailsWithWhitespaces()
126125

127126
/**
128127
* @group legacy
129-
*
130128
* @dataProvider getValidEmailsWithWhitespaces
131129
* @dataProvider getEmailsWithWhitespacesOnlyValidInLooseMode
132130
*/

0 commit comments

Comments
 (0)
0