Skip to content

Commit bf12132

Browse files
committed
minor #18502 [Validator] Remove the deprecated VALIDATION_MODE_LOOSE (javiereguiluz)
This PR was merged into the 7.0 branch. Discussion ---------- [Validator] Remove the deprecated VALIDATION_MODE_LOOSE Fixes #18489. Commits ------- f24c160 [Validator] Remove the deprecated VALIDATION_MODE_LOOSE
2 parents 14a0b98 + f24c160 commit bf12132

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
@@ -2603,12 +2603,7 @@ constraint verifies the submitted string entropy is matching the minimum entropy
26032603
email_validation_mode
26042604
.....................
26052605

2606-
**type**: ``string`` **default**: ``loose``
2607-
2608-
.. deprecated:: 6.2
2609-
2610-
The ``loose`` default value is deprecated since Symfony 6.2. Starting from
2611-
Symfony 7.0, the default value of this option will be ``html5``.
2606+
**type**: ``string`` **default**: ``html5``
26122607

26132608
Sets the default value for the
26142609
: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)