Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit a61c8c6

Browse filesBrowse 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
Copy full SHA for a61c8c6

File tree

Expand file treeCollapse file tree

1 file changed

+3
-3
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+3
-3
lines changed

‎reference/constraints/NotBlank.rst

Copy file name to clipboardExpand all lines: reference/constraints/NotBlank.rst
+3-3Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.