diff --git a/Constraints/Email.php b/Constraints/Email.php index 55399f977..c7205ec1f 100644 --- a/Constraints/Email.php +++ b/Constraints/Email.php @@ -29,7 +29,7 @@ class Email extends Constraint public const VALIDATION_MODE_HTML5 = 'html5'; public const VALIDATION_MODE_STRICT = 'strict'; /** - * @deprecated since Symfony 6.2 + * @deprecated since Symfony 6.2, use VALIDATION_MODE_HTML5 instead */ public const VALIDATION_MODE_LOOSE = 'loose'; @@ -74,7 +74,7 @@ public function __construct( $this->normalizer = $normalizer ?? $this->normalizer; if (self::VALIDATION_MODE_LOOSE === $this->mode) { - 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); + 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); } if (self::VALIDATION_MODE_STRICT === $this->mode && !class_exists(StrictEmailValidator::class)) {