Skip to content

Commit a61c8c6

Browse files
committed
bug #4615 Update NotBlank to reflect the actual validation (DRvanR)
This PR was submitted for the 2.6 branch but it was merged into the 2.3 branch instead (closes #4615). Discussion ---------- Update NotBlank to reflect the actual validation | Q | A | ------------- | --- | Doc fix? | yes | New docs? | no | Applies to | all | Fixed tickets | n/a 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 Commits ------- b11ad2e Update NotBlank to reflect the actual validation
2 parents b0c069a + b11ad2e commit a61c8c6

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)