Skip to content

Commit 1418415

Browse files
committed
Merge branch '7.0' into 7.1
* 7.0: Fix the default value for the constraints option of forms
2 parents 0816f2b + a4d3515 commit 1418415

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
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)