Skip to content

[Validator] Add missing backticks for constraint option names #15159

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Show file tree
Hide file tree
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
16 changes: 8 additions & 8 deletions reference/constraints/Bic.rst
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,8 @@ Available Options

.. include:: /reference/constraints/_groups-option.rst.inc

iban
~~~~
``iban``
~~~~~~~~

**type**: ``string`` **default**: ``null``

Expand All @@ -98,8 +98,8 @@ iban

An IBAN value to validate that its country code is the same as the BIC's one.

ibanMessage
~~~~~~~~~~~
``ibanMessage``
~~~~~~~~~~~~~~~

**type**: ``string`` **default**: ``This Business Identifier Code (BIC) is not associated with IBAN {{ iban }}.``

Expand All @@ -109,8 +109,8 @@ ibanMessage

The default message supplied when the value does not pass the combined BIC/IBAN check.

ibanPropertyPath
~~~~~~~~~~~~~~~~
``ibanPropertyPath``
~~~~~~~~~~~~~~~~~~~~

**type**: ``string`` **default**: ``null``

Expand All @@ -124,8 +124,8 @@ For example, if you want to compare the ``$bic`` property of some object
with regard to the ``$iban`` property of the same object, use
``ibanPropertyPath="iban"`` in the comparison constraint of ``$bic``.

message
~~~~~~~
``message``
~~~~~~~~~~~

**type**: ``string`` **default**: ``This is not a valid Business Identifier Code (BIC).``

Expand Down
8 changes: 4 additions & 4 deletions reference/constraints/CardScheme.rst
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,8 @@ Available Options

.. include:: /reference/constraints/_groups-option.rst.inc

message
~~~~~~~
``message``
~~~~~~~~~~~

**type**: ``string`` **default**: ``Unsupported card type or invalid card number.``

Expand All @@ -116,8 +116,8 @@ Parameter Description

.. include:: /reference/constraints/_payload-option.rst.inc

schemes
~~~~~~~
``schemes``
~~~~~~~~~~~

**type**: ``mixed`` [:ref:`default option <validation-default-option>`]

Expand Down
36 changes: 18 additions & 18 deletions reference/constraints/Choice.rst
Original file line number Diff line number Diff line change
Expand Up @@ -275,17 +275,17 @@ you can pass the class name and the method as an array.
Available Options
-----------------

callback
~~~~~~~~
``callback``
~~~~~~~~~~~~

**type**: ``string|array|Closure``

This is a callback method that can be used instead of the `choices`_ option
to return the choices array. See
`Supplying the Choices with a Callback Function`_ for details on its usage.

choices
~~~~~~~
``choices``
~~~~~~~~~~~

**type**: ``array`` [:ref:`default option <validation-default-option>`]

Expand All @@ -295,8 +295,8 @@ will be matched against this array.

.. include:: /reference/constraints/_groups-option.rst.inc

max
~~~
``max``
~~~~~~~

**type**: ``integer``

Expand All @@ -305,8 +305,8 @@ to force no more than XX number of values to be selected. For example, if
``max`` is 3, but the input array contains 4 valid items, the validation
will fail.

maxMessage
~~~~~~~~~~
``maxMessage``
~~~~~~~~~~~~~~

**type**: ``string`` **default**: ``You must select at most {{ limit }} choices.``

Expand All @@ -326,8 +326,8 @@ Parameter Description

The ``{{ choices }}`` parameter was introduced in Symfony 4.3.

message
~~~~~~~
``message``
~~~~~~~~~~~

**type**: ``string`` **default**: ``The value you selected is not a valid choice.``

Expand All @@ -344,8 +344,8 @@ Parameter Description
``{{ value }}`` The current (invalid) value
================= ============================================================

min
~~~
``min``
~~~~~~~

**type**: ``integer``

Expand All @@ -354,8 +354,8 @@ to force at least XX number of values to be selected. For example, if
``min`` is 3, but the input array only contains 2 valid items, the validation
will fail.

minMessage
~~~~~~~~~~
``minMessage``
~~~~~~~~~~~~~~

**type**: ``string`` **default**: ``You must select at least {{ limit }} choices.``

Expand All @@ -375,8 +375,8 @@ Parameter Description

The ``{{ choices }}`` parameter was introduced in Symfony 4.3.

multiple
~~~~~~~~
``multiple``
~~~~~~~~~~~~

**type**: ``boolean`` **default**: ``false``

Expand All @@ -385,8 +385,8 @@ of a single, scalar value. The constraint will check that each value of
the input array can be found in the array of valid choices. If even one
of the input values cannot be found, the validation will fail.

multipleMessage
~~~~~~~~~~~~~~~
``multipleMessage``
~~~~~~~~~~~~~~~~~~~

**type**: ``string`` **default**: ``One or more of the given values is invalid.``

Expand Down
20 changes: 10 additions & 10 deletions reference/constraints/Count.rst
Original file line number Diff line number Diff line change
Expand Up @@ -101,8 +101,8 @@ you might add the following:
Options
-------

exactMessage
~~~~~~~~~~~~
``exactMessage``
~~~~~~~~~~~~~~~~

**type**: ``string`` **default**: ``This collection should contain exactly {{ limit }} elements.``

Expand All @@ -120,8 +120,8 @@ Parameter Description

.. include:: /reference/constraints/_groups-option.rst.inc

max
~~~
``max``
~~~~~~~

**type**: ``integer``

Expand All @@ -130,8 +130,8 @@ collection elements count is **greater** than this max value.

This option is required when the ``min`` option is not defined.

maxMessage
~~~~~~~~~~
``maxMessage``
~~~~~~~~~~~~~~

**type**: ``string`` **default**: ``This collection should contain {{ limit }} elements or less.``

Expand All @@ -147,8 +147,8 @@ Parameter Description
``{{ limit }}`` The upper limit
=============== ==============================================================

min
~~~
``min``
~~~~~~~

**type**: ``integer``

Expand All @@ -157,8 +157,8 @@ collection elements count is **less** than this min value.

This option is required when the ``max`` option is not defined.

minMessage
~~~~~~~~~~
``minMessage``
~~~~~~~~~~~~~~

**type**: ``string`` **default**: ``This collection should contain {{ limit }} elements or more.``

Expand Down
4 changes: 2 additions & 2 deletions reference/constraints/DateTime.rst
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,8 @@ Basic Usage
Options
-------

format
~~~~~~
``format``
~~~~~~~~~~

**type**: ``string`` **default**: ``Y-m-d H:i:s``

Expand Down
4 changes: 2 additions & 2 deletions reference/constraints/DivisibleBy.rst
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,8 @@ Options

.. include:: /reference/constraints/_groups-option.rst.inc

message
~~~~~~~
``message``
~~~~~~~~~~~

**type**: ``string`` **default**: ``This value should be a multiple of {{ compared_value }}.``

Expand Down
16 changes: 8 additions & 8 deletions reference/constraints/Email.rst
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,8 @@ Basic Usage
Options
-------

checkHost
~~~~~~~~~
``checkHost``
~~~~~~~~~~~~~

**type**: ``boolean`` **default**: ``false``

Expand All @@ -105,8 +105,8 @@ If true, then the :phpfunction:`checkdnsrr` PHP function will be used to
check the validity of the MX *or* the A *or* the AAAA record of the host
of the given email.

checkMX
~~~~~~~
``checkMX``
~~~~~~~~~~~

**type**: ``boolean`` **default**: ``false``

Expand All @@ -124,8 +124,8 @@ check the validity of the MX record of the host of the given email.

.. include:: /reference/constraints/_groups-option.rst.inc

message
~~~~~~~
``message``
~~~~~~~~~~~

**type**: ``string`` **default**: ``This value is not a valid email address.``

Expand All @@ -139,8 +139,8 @@ Parameter Description
``{{ value }}`` The current (invalid) value
=============== ==============================================================

mode
~~~~
``mode``
~~~~~~~~

**type**: ``string`` **default**: ``loose``

Expand Down
4 changes: 2 additions & 2 deletions reference/constraints/Expression.rst
Original file line number Diff line number Diff line change
Expand Up @@ -264,8 +264,8 @@ Parameter Description

.. include:: /reference/constraints/_payload-option.rst.inc

values
~~~~~~
``values``
~~~~~~~~~~

**type**: ``array`` **default**: ``[]``

Expand Down
Loading