Skip to content

Commit 88d2d97

Browse files
Merge branch '6.2' into 6.3
* 6.2: minor #49431 [Mailer][Translation] Remove some `static` occurrences that may cause unstable tests (alexandre-daubois) minor #49431 [Mailer][Translation] Remove some `static` occurrences that may cause unstable tests (alexandre-daubois) [Clock] fix url in README.md [Workflow] remove new lines from workflow metadata Fix phpdocs in HttpClient, HttpFoundation, HttpKernel, Intl components [WebProfilerBundle] Render original (not encoded) email headers improve deprecation message [Console] fix clear of section with question
2 parents 14d0b12 + 323a243 commit 88d2d97

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Constraints/Email.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ class Email extends Constraint
2929
public const VALIDATION_MODE_HTML5 = 'html5';
3030
public const VALIDATION_MODE_STRICT = 'strict';
3131
/**
32-
* @deprecated since Symfony 6.2
32+
* @deprecated since Symfony 6.2, use VALIDATION_MODE_HTML5 instead
3333
*/
3434
public const VALIDATION_MODE_LOOSE = 'loose';
3535

@@ -74,7 +74,7 @@ public function __construct(
7474
$this->normalizer = $normalizer ?? $this->normalizer;
7575

7676
if (self::VALIDATION_MODE_LOOSE === $this->mode) {
77-
trigger_deprecation('symfony/validator', '6.2', 'The "%s" mode is deprecated. The default mode will be changed to "%s" in 7.0.', self::VALIDATION_MODE_LOOSE, self::VALIDATION_MODE_HTML5);
77+
trigger_deprecation('symfony/validator', '6.2', 'The "%s" mode is deprecated. It will be removed in 7.0 and the default mode will be changed to "%s".', self::VALIDATION_MODE_LOOSE, self::VALIDATION_MODE_HTML5);
7878
}
7979

8080
if (self::VALIDATION_MODE_STRICT === $this->mode && !class_exists(StrictEmailValidator::class)) {

0 commit comments

Comments
 (0)