Skip to content

Commit f40f01b

Browse files
MrYamousjaviereguiluz
authored andcommitted
[Validator] Improve type for the mode property of the Bic constraint
1 parent 1babc11 commit f40f01b

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)