We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a09f7b6 commit ad7303fCopy full SHA for ad7303f
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