Skip to content

Commit

Permalink
Fix the default value for the constraints option of forms
Browse files Browse the repository at this point in the history
`null` is not a valid value of this option.
  • Loading branch information
stof authored Mar 21, 2024
1 parent a09f7b6 commit ad7303f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion reference/forms/types/options/constraints.rst.inc
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
``constraints``
~~~~~~~~~~~~~~~

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

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

0 comments on commit ad7303f

Please sign in to comment.