Skip to content

Commit b11ad2e

Browse files
DRvanRweaverryan
authored andcommitted
Update NotBlank to reflect the actual validation
As can be seen in the [validator][1] class values that are false also lead to a violation. This was not documented, which we discovered when using this constraint 😉 [1]: https://github.com/symfony/symfony/blob/2.7/src/Symfony/Component/Validator/Constraints/NotBlankValidator.php#L34
1 parent b0c069a commit b11ad2e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

reference/constraints/NotBlank.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
NotBlank
22
========
33

4-
Validates that a value is not blank, defined as not equal to a blank string
5-
and also not equal to ``null``. To force that a value is simply not equal
6-
to ``null``, see the :doc:`/reference/constraints/NotNull` constraint.
4+
Validates that a value is not blank, defined as not strictly ``false``, not equal to a blank
5+
string and also not equal to ``null``. To force that a value is simply not equal to
6+
``null``, see the :doc:`/reference/constraints/NotNull` constraint.
77

88
+----------------+------------------------------------------------------------------------+
99
| Applies to | :ref:`property or method <validation-property-target>` |

0 commit comments

Comments
 (0)