8000 minor #5288 Constraints - empty strings and null values (anacicconi) · symfony/symfony-docs@31e613a · GitHub
[go: up one dir, main page]

Skip to content

Commit 31e613a

Browse files
committed
minor #5288 Constraints - empty strings and null values (anacicconi)
This PR was merged into the 2.3 branch. Discussion ---------- Constraints - empty strings and null values | Q | A | ------------- | --- | Doc fix? | yes | New docs? | no | Applies to | all | Fixed tickets | #4244 Commits ------- 2616acd Constraints - empty strings and null values
2 parents eb17948 + 2616acd commit 31e613a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

reference/constraints/Length.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,10 @@ min
115115
This required option is the "min" length value. Validation will fail if
116116
the given value's length is **less** than this min value.
117117

118+
It is important to notice that NULL values and empty strings are considered
119+
valid no matter if the constraint required a minimum length. Validators are
120+
triggered only if the value is not blank.
121+
118122
max
119123
~~~
120124

0 commit comments

Comments
 (0)
0