Skip to content

Commit 3110a67

Browse files
committed
minor #15159 [Validator] Add missing backticks for constraint option names (henry2778)
This PR was squashed before being merged into the 4.4 branch. Discussion ---------- [Validator] Add missing backticks for constraint option names Adding some missing backticks for constraint option names. Thanks! :) Issue: #15134 Commits ------- 1e6d130 [Validator] Add missing backticks for constraint option names
2 parents 64eb995 + 1e6d130 commit 3110a67

31 files changed

+258
-258
lines changed

reference/constraints/Bic.rst

+8-8
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,8 @@ Available Options
8787

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

90-
iban
91-
~~~~
90+
``iban``
91+
~~~~~~~~
9292

9393
**type**: ``string`` **default**: ``null``
9494

@@ -98,8 +98,8 @@ iban
9898

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

101-
ibanMessage
102-
~~~~~~~~~~~
101+
``ibanMessage``
102+
~~~~~~~~~~~~~~~
103103

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

@@ -109,8 +109,8 @@ ibanMessage
109109

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

112-
ibanPropertyPath
113-
~~~~~~~~~~~~~~~~
112+
``ibanPropertyPath``
113+
~~~~~~~~~~~~~~~~~~~~
114114

115115
**type**: ``string`` **default**: ``null``
116116

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

127-
message
128-
~~~~~~~
127+
``message``
128+
~~~~~~~~~~~
129129

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

reference/constraints/CardScheme.rst

+4-4
Original file line numberDiff line numberDiff line change
@@ -99,8 +99,8 @@ Available Options
9999

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

102-
message
103-
~~~~~~~
102+
``message``
103+
~~~~~~~~~~~
104104

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

@@ -116,8 +116,8 @@ Parameter Description
116116

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

119-
schemes
120-
~~~~~~~
119+
``schemes``
120+
~~~~~~~~~~~
121121

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

reference/constraints/Choice.rst

+18-18
Original file line numberDiff line numberDiff line change
@@ -275,17 +275,17 @@ you can pass the class name and the method as an array.
275275
Available Options
276276
-----------------
277277

278-
callback
279-
~~~~~~~~
278+
``callback``
279+
~~~~~~~~~~~~
280280

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

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

287-
choices
288-
~~~~~~~
287+
``choices``
288+
~~~~~~~~~~~
289289

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

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

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

298-
max
299-
~~~
298+
``max``
299+
~~~~~~~
300300

301301
**type**: ``integer``
302302

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

308-
maxMessage
309-
~~~~~~~~~~
308+
``maxMessage``
309+
~~~~~~~~~~~~~~
310310

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

@@ -326,8 +326,8 @@ Parameter Description
326326

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

329-
message
330-
~~~~~~~
329+
``message``
330+
~~~~~~~~~~~
331331

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

@@ -344,8 +344,8 @@ Parameter Description
344344
``{{ value }}`` The current (invalid) value
345345
================= ============================================================
346346

347-
min
348-
~~~
347+
``min``
348+
~~~~~~~
349349

350350
**type**: ``integer``
351351

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

357-
minMessage
358-
~~~~~~~~~~
357+
``minMessage``
358+
~~~~~~~~~~~~~~
359359

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

@@ -375,8 +375,8 @@ Parameter Description
375375

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

378-
multiple
379-
~~~~~~~~
378+
``multiple``
379+
~~~~~~~~~~~~
380380

381381
**type**: ``boolean`` **default**: ``false``
382382

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

388-
multipleMessage
389-
~~~~~~~~~~~~~~~
388+
``multipleMessage``
389+
~~~~~~~~~~~~~~~~~~~
390390

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

reference/constraints/Count.rst

+10-10
Original file line numberDiff line numberDiff line change
@@ -101,8 +101,8 @@ you might add the following:
101101
Options
102102
-------
103103

104-
exactMessage
105-
~~~~~~~~~~~~
104+
``exactMessage``
105+
~~~~~~~~~~~~~~~~
106106

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

@@ -120,8 +120,8 @@ Parameter Description
120120

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

123-
max
124-
~~~
123+
``max``
124+
~~~~~~~
125125

126126
**type**: ``integer``
127127

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

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

133-
maxMessage
134-
~~~~~~~~~~
133+
``maxMessage``
134+
~~~~~~~~~~~~~~
135135

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

@@ -147,8 +147,8 @@ Parameter Description
147147
``{{ limit }}`` The upper limit
148148
=============== ==============================================================
149149

150-
min
151-
~~~
150+
``min``
151+
~~~~~~~
152152

153153
**type**: ``integer``
154154

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

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

160-
minMessage
161-
~~~~~~~~~~
160+
``minMessage``
161+
~~~~~~~~~~~~~~
162162

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

reference/constraints/DateTime.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -84,8 +84,8 @@ Basic Usage
8484
Options
8585
-------
8686

87-
format
88-
~~~~~~
87+
``format``
88+
~~~~~~~~~~
8989

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

reference/constraints/DivisibleBy.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -104,8 +104,8 @@ Options
104104

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

107-
message
108-
~~~~~~~
107+
``message``
108+
~~~~~~~~~~~
109109

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

reference/constraints/Email.rst

+8-8
Original file line numberDiff line numberDiff line change
@@ -92,8 +92,8 @@ Basic Usage
9292
Options
9393
-------
9494

95-
checkHost
96-
~~~~~~~~~
95+
``checkHost``
96+
~~~~~~~~~~~~~
9797

9898
**type**: ``boolean`` **default**: ``false``
9999

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

108-
checkMX
109-
~~~~~~~
108+
``checkMX``
109+
~~~~~~~~~~~
110110

111111
**type**: ``boolean`` **default**: ``false``
112112

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

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

127-
message
128-
~~~~~~~
127+
``message``
128+
~~~~~~~~~~~
129129

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

@@ -139,8 +139,8 @@ Parameter Description
139139
``{{ value }}`` The current (invalid) value
140140
=============== ==============================================================
141141

142-
mode
143-
~~~~
142+
``mode``
143+
~~~~~~~~
144144

145145
**type**: ``string`` **default**: ``loose``
146146

reference/constraints/Expression.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -264,8 +264,8 @@ Parameter Description
264264

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

267-
values
268-
~~~~~~
267+
``values``
268+
~~~~~~~~~~
269269

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

0 commit comments

Comments
 (0)