Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 5 additions & 10 deletions reference/constraints/Bic.rst
Original file line number Diff line number Diff line change
Expand Up @@ -124,18 +124,13 @@ Parameter Description
``mode``
~~~~~~~~

**type**: ``string`` **default**: ``strict``
**type**: ``string`` **default**: ``BIC::VALIDATION_MODE_STRICT``

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

* ``strict`` validates the given value without any modification;
* ``case-insensitive`` converts the given value to uppercase before validating it.

.. tip::

The possible values of this option are also defined as PHP constants of
:class:`Symfony\\Component\\Validator\\Constraints\\BIC`
(e.g. ``BIC::VALIDATION_MODE_CASE_INSENSITIVE``).
* ``BIC::VALIDATION_MODE_STRICT`` validates the given value without any modification;
* ``BIC::VALIDATION_MODE_CASE_INSENSITIVE`` converts the given value to uppercase before validating it.

.. versionadded:: 7.2

Expand Down
Loading