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.
2 parents 0816f2b + a4d3515 commit 1418415Copy full SHA for 1418415
reference/forms/types/options/constraints.rst.inc
@@ -1,7 +1,7 @@
1
``constraints``
2
~~~~~~~~~~~~~~~
3
4
-**type**: ``array`` or :class:`Symfony\\Component\\Validator\\Constraint` **default**: ``null``
+**type**: ``array`` or :class:`Symfony\\Component\\Validator\\Constraint` **default**: ``[]``
5
6
Allows you to attach one or more validation constraints to a specific field.
7
For more information, see :ref:`Adding Validation <form-option-constraints>`.
0 commit comments