From 623c874749b932db1af6cc86d4403dd85cd91304 Mon Sep 17 00:00:00 2001 From: Daan van Renterghem Date: Tue, 9 Dec 2014 11:49:33 +0100 Subject: [PATCH] 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 :wink: [1]: https://github.com/symfony/symfony/blob/2.7/src/Symfony/Component/Validator/Constraints/NotBlankValidator.php#L34 --- reference/constraints/NotBlank.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/reference/constraints/NotBlank.rst b/reference/constraints/NotBlank.rst index 8de6034b48c..a7ef539c92c 100644 --- a/reference/constraints/NotBlank.rst +++ b/reference/constraints/NotBlank.rst @@ -1,8 +1,8 @@ NotBlank ======== -Validates that a value is not blank, defined as not equal to a blank string -and also not equal to ``null``. To force that a value is simply not equal to +Validates that a value is not blank, defined as not strictly ``false``, not equal to a blank +string and also not equal to ``null``. To force that a value is simply not equal to ``null``, see the :doc:`/reference/constraints/NotNull` constraint. +----------------+------------------------------------------------------------------------+