File tree Expand file tree Collapse file tree 2 files changed +2
-15
lines changed Expand file tree Collapse file tree 2 files changed +2
-15
lines changed Original file line number Diff line number Diff line change @@ -2619,12 +2619,7 @@ constraint verifies the submitted string entropy is matching the minimum entropy
2619
2619
email_validation_mode
2620
2620
.....................
2621
2621
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 ``
2628
2623
2629
2624
Sets the default value for the
2630
2625
:ref: `"mode" option of the Email validator <reference-constraint-email-mode >`.
Original file line number Diff line number Diff line change @@ -104,13 +104,10 @@ Parameter Description
104
104
``mode ``
105
105
~~~~~~~~
106
106
107
- **type **: ``string `` **default **: (see below)
107
+ **type **: ``string `` **default **: `` html5 ``
108
108
109
109
This option defines the pattern used to validate the email address. Valid values are:
110
110
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;
114
111
* ``html5 `` uses the regular expression of the `HTML5 email input element `_,
115
112
except it enforces a tld to be present.
116
113
* ``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
133
130
:ref: `framework.validation.email_validation_mode <reference-validation-email_validation_mode >`
134
131
configuration option.
135
132
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
-
141
133
.. include :: /reference/constraints/_normalizer-option.rst.inc
142
134
143
135
.. include :: /reference/constraints/_payload-option.rst.inc
You can’t perform that action at this time.
0 commit comments