From ad7303f7ca0c9302f126504991c66db2951ad98c Mon Sep 17 00:00:00 2001 From: Christophe Coevoet Date: Thu, 21 Mar 2024 18:22:19 +0100 Subject: [PATCH] Fix the default value for the constraints option of forms `null` is not a valid value of this option. --- reference/forms/types/options/constraints.rst.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reference/forms/types/options/constraints.rst.inc b/reference/forms/types/options/constraints.rst.inc index 7aab319f302..3e1af29f3ab 100644 --- a/reference/forms/types/options/constraints.rst.inc +++ b/reference/forms/types/options/constraints.rst.inc @@ -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 `.