Skip to content

Commit eec7a8e

Browse files
committed
minor #19696 [Form] Fix the default value for the constraints option of forms (stof)
This PR was merged into the 5.4 branch. Discussion ---------- [Form] Fix the default value for the constraints option of forms `null` is not a valid value of this option. Commits ------- ad7303f Fix the default value for the constraints option of forms
2 parents a09f7b6 + ad7303f commit eec7a8e

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)