8000 [Validator] Add warning for null and blank values for minimum string … · symfony/symfony-docs@38d44c2 · GitHub
[go: up one dir, main page]

Skip to content

Commit 38d44c2

Browse files
theofidryweaverryan
authored andcommitted
[Validator] Add warning for null and blank values for minimum string length
1 parent 47e4769 commit 38d44c2

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

reference/constraints/Length.rst

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,12 @@
11
Length
22
======
33

4-
Validates that a given string length is *between* some minimum and maximum
5-
value.
4+
Validates that a given string length is *between* some minimum and maximum value.
5+
6+
**Warning**: *null* and *blank* values are not handled by this constraint. To
7+
handle them, refers to the :doc:`/reference/constraints/Null`,
8+
:doc:`/reference/constraints/NotNull`, :doc:`/reference/constraints/Blank` and
9+
:doc:`/reference/constraints/NotBlank` constraints.
610

711
+----------------+----------------------------------------------------------------------+
812
| Applies to | :ref:`property or method <validation-property-target>` |

0 commit comments

Comments
 (0)
0