Skip to content

Commit ad7303f

Browse files
authored
Fix the default value for the constraints option of forms
`null` is not a valid value of this option.
1 parent a09f7b6 commit ad7303f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

reference/forms/types/options/constraints.rst.inc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
``constraints``
22
~~~~~~~~~~~~~~~
33

4-
**type**: ``array`` or :class:`Symfony\\Component\\Validator\\Constraint` **default**: ``null``
4+
**type**: ``array`` or :class:`Symfony\\Component\\Validator\\Constraint` **default**: ``[]``
55

66
Allows you to attach one or more validation constraints to a specific field.
77
For more information, see :ref:`Adding Validation <form-option-constraints>`.

0 commit comments

Comments
 (0)