Skip to content

Commit 5ec564f

Browse files
committed
minor #20385 [Validator] Improve type for the mode property of the Bic constraint (MrYamous)
This PR was squashed before being merged into the 7.2 branch. Discussion ---------- [Validator] Improve type for the `mode` property of the `Bic` constraint Following [58810](symfony/symfony#58810) in code Commits ------- f40f01b [Validator] Improve type for the `mode` property of the `Bic` constraint
2 parents 43869b1 + f40f01b commit 5ec564f

File tree

1 file changed

+5
-10
lines changed

1 file changed

+5
-10
lines changed

reference/constraints/Bic.rst

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -124,18 +124,13 @@ Parameter Description
124124
``mode``
125125
~~~~~~~~
126126

127-
**type**: ``string`` **default**: ``strict``
127+
**type**: ``string`` **default**: ``BIC::VALIDATION_MODE_STRICT``
128128

129-
This option defines how the BIC is validated:
129+
This option defines how the BIC is validated. Available constants are defined
130+
in the :class:`Symfony\\Component\\Validator\\Constraints\\BIC` class.
130131

131-
* ``strict`` validates the given value without any modification;
132-
* ``case-insensitive`` converts the given value to uppercase before validating it.
133-
134-
.. tip::
135-
136-
The possible values of this option are also defined as PHP constants of
137-
:class:`Symfony\\Component\\Validator\\Constraints\\BIC`
138-
(e.g. ``BIC::VALIDATION_MODE_CASE_INSENSITIVE``).
132+
* ``BIC::VALIDATION_MODE_STRICT`` validates the given value without any modification;
133+
* ``BIC::VALIDATION_MODE_CASE_INSENSITIVE`` converts the given value to uppercase before validating it.
139134

140135
.. versionadded:: 7.2
141136

0 commit comments

Comments
 (0)