Skip to content

Commit eaf4a35

Browse files
committed
minor #16939 [Mailer] Deprecate the "loose" validation option (javiereguiluz)
This PR was squashed before being merged into the 6.2 branch. Discussion ---------- [Mailer] Deprecate the "loose" validation option Fixes #16843. Commits ------- 6857913 [Mailer] Deprecate the "loose" validation option
2 parents 32201ba + 6857913 commit eaf4a35

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

reference/configuration/framework.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2508,6 +2508,11 @@ email_validation_mode
25082508

25092509
**type**: ``string`` **default**: ``loose``
25102510

2511+
.. deprecated:: 6.2
2512+
2513+
The ``loose`` default value is deprecated since Symfony 6.2. Starting from
2514+
Symfony 7.0, the default value of this option will be ``html5``.
2515+
25112516
Sets the default value for the
25122517
:ref:`"mode" option of the Email validator <reference-constraint-email-mode>`.
25132518

reference/constraints/Email.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,11 @@ The default value used by this option is set in the
135135
:ref:`framework.validation.email_validation_mode <reference-validation-email_validation_mode>`
136136
configuration option.
137137

138+
.. deprecated:: 6.2
139+
140+
The ``loose`` value is deprecated since Symfony 6.2. Starting from
141+
Symfony 7.0, the default value of this option will be ``html5``.
142+
138143
.. include:: /reference/constraints/_normalizer-option.rst.inc
139144

140145
.. include:: /reference/constraints/_payload-option.rst.inc

0 commit comments

Comments
 (0)