8000 minor #10418 reword note about empty values during validation (xabbuh) · symfony/symfony-docs@2c6c5da · GitHub
[go: up one dir, main page]

Skip to content

Commit 2c6c5da

Browse files
committed
minor #10418 reword note about empty values during validation (xabbuh)
This PR was merged into the 2.8 branch. Discussion ---------- reword note about empty values during validation Commits ------- 55ab7f4 reword note about empty values during validation
2 parents 33f40e0 + 55ab7f4 commit 2c6c5da

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed
Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
.. note::
22

3-
As with most of the other constraints, ``null`` values and empty strings
4-
are considered valid values. Otherwise, in addition to validating this value,
5-
you would also be requiring it, making it impossible to be optional. That's
6-
why it's common to combine this constraint with
7-
:doc:`NotBlank </reference/constraints/NotBlank>`.
3+
As with most of the other constraints, ``null`` and empty strings are
4+
considered valid values. This is to allow them to be optional values.
5+
If the value is mandatory, a common solution is to combine this constraint
6+
with :doc:`NotBlank </reference/constraints/NotBlank>`.

0 commit comments

Comments
 (0)
0