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
8 changes: 6 additions & 2 deletions reference/constraints/When.rst
Original file line number Diff line number Diff line change
Expand Up @@ -271,9 +271,13 @@ You can also pass custom variables using the `values`_ option.
``constraints``
~~~~~~~~~~~~~~~

**type**: ``array``
**type**: ``array|Constraint``

The constraints that are applied if the expression returns true.
One or multiple constraints that are applied if the expression returns true.

.. versionadded:: 6.4

Passing a single ``Constraint`` instead of an array was introduced in Symfony 6.4.

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

Expand Down