We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
When
1 parent 123f998 commit 92642caCopy full SHA for 92642ca
reference/constraints/When.rst
@@ -271,9 +271,13 @@ You can also pass custom variables using the `values`_ option.
271
``constraints``
272
~~~~~~~~~~~~~~~
273
274
-**type**: ``array``
+**type**: ``array|Constraint``
275
276
-The constraints that are applied if the expression returns true.
+One or multiple constraints that are applied if the expression returns true.
277
+
278
+.. versionadded:: 6.4
279
280
+ Passing a single ``Constraint`` instead of an array was introduced in Symfony 6.4.
281
282
.. include:: /reference/constraints/_groups-option.rst.inc
283
0 commit comments