10000 [#6270] Changing to a caution and re-wording, per xabbuh's suggestions · symfony/symfony-docs@72a61ae · GitHub
[go: up one dir, main page]

Skip to content

Commit 72a61ae

Browse files
committed
[#6270] Changing to a caution and re-wording, per xabbuh's suggestions
1 parent 90eaef6 commit 72a61ae

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

reference/constraints/Length.rst

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,11 @@ Length
33

44
Validates that a given string length is *between* some minimum and maximum value.
55

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.
6+
.. caution::
7+
8+
``null`` and empty strings are not handled by this constraint. You need to
9+
also add the :doc:`/reference/constraints/NotBlank` or :doc:`/reference/constraints/NotNull`
10+
constraints to validate against these.
1011

1112
+----------------+----------------------------------------------------------------------+
1213
| Applies to | :ref:`property or method <validation-property-target>` |

0 commit comments

Comments
 (0)
0