Skip to content

Commit f24c160

Browse files
committed
[Validator] Remove the deprecated VALIDATION_MODE_LOOSE
1 parent b102cf9 commit f24c160

File tree

2 files changed

+2
-15
lines changed

2 files changed

+2
-15
lines changed

reference/configuration/framework.rst

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2619,12 +2619,7 @@ constraint verifies the submitted string entropy is matching the minimum entropy
26192619
email_validation_mode
26202620
.....................
26212621

2622-
**type**: ``string`` **default**: ``loose``
2623-
2624-
.. deprecated:: 6.2
2625-
2626-
The ``loose`` default value is deprecated since Symfony 6.2. Starting from
2627-
Symfony 7.0, the default value of this option will be ``html5``.
2622+
**type**: ``string`` **default**: ``html5``
26282623

26292624
Sets the default value for the
26302625
:ref:`"mode" option of the Email validator <reference-constraint-email-mode>`.

reference/constraints/Email.rst

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -104,13 +104,10 @@ Parameter Description
104104
``mode``
105105
~~~~~~~~
106106

107-
**type**: ``string`` **default**: (see below)
107+
**type**: ``string`` **default**: ``html5``
108108

109109
This option defines the pattern used to validate the email address. Valid values are:
110110

111-
* ``loose`` uses a simple regular expression (just checks that at least one ``@``
112-
character is present, etc.). This validation is too simple and it's recommended
113-
to use one of the other modes instead;
114111
* ``html5`` uses the regular expression of the `HTML5 email input element`_,
115112
except it enforces a tld to be present.
116113
* ``html5-allow-no-tld`` uses exactly the same regular expression as the `HTML5 email input element`_,
@@ -133,11 +130,6 @@ The default value used by this option is set in the
133130
:ref:`framework.validation.email_validation_mode <reference-validation-email_validation_mode>`
134131
configuration option.
135132

136-
.. deprecated:: 6.2
137-
138-
The ``loose`` value is deprecated since Symfony 6.2. Starting from
139-
Symfony 7.0, the default value of this option will be ``html5``.
140-
141133
.. include:: /reference/constraints/_normalizer-option.rst.inc
142134

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

0 commit comments

Comments
 (0)