Skip to content

Commit 16bfee6

Browse files
committed
minor #17761 move the documentation of the match option to the right place (xabbuh)
This PR was merged into the 6.2 branch. Discussion ---------- move the documentation of the match option to the right place This option is part of the Choice validation constraint, but does not belong to the ChoiceType from the Form component. Commits ------- d0ed231 move the documentation of the match option to the right place
2 parents 812b742 + d0ed231 commit 16bfee6

File tree

2 files changed

+14
-13
lines changed

2 files changed

+14
-13
lines changed

reference/constraints/Choice.rst

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -302,6 +302,20 @@ Parameter Description
302302
``{{ value }}`` The current (invalid) value
303303
================= ============================================================
304304

305+
306+
match
307+
~~~~~
308+
309+
**type**: ``boolean`` **default**: ``true``
310+
311+
When this option is ``false``, the constraint checks that the given value is
312+
not one of the values defined in the ``choices`` option. In practice, it makes
313+
the ``Choice`` constraint behave like a ``NotChoice`` constraint.
314+
315+
.. versionadded:: 6.2
316+
317+
The ``match`` option was introduced in Symfony 6.2.
318+
305319
``message``
306320
~~~~~~~~~~~
307321

reference/forms/types/choice.rst

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -195,19 +195,6 @@ correct types will be assigned to the model.
195195

196196
.. include:: /reference/forms/types/options/group_by.rst.inc
197197

198-
match
199-
~~~~~
200-
201-
**type**: ``boolean`` **default**: ``true``
202-
203-
When this option is ``false``, the constraint checks that the given value is
204-
not one of the values defined in the ``choices`` option. In practice, it makes
205-
the ``Choice`` constraint behave like a ``NotChoice`` constraint.
206-
207-
.. versionadded:: 6.2
208-
209-
The ``match`` option was introduced in Symfony 6.2.
210-
211198
.. include:: /reference/forms/types/options/multiple.rst.inc
212199

213200
.. include:: /reference/forms/types/options/placeholder.rst.inc

0 commit comments

Comments
 (0)