Skip to content

Commit c688d26

Browse files
committed
Remove allowNull option
1 parent bf1c431 commit c688d26

File tree

1 file changed

+3
-17
lines changed

1 file changed

+3
-17
lines changed

reference/constraints/NotBlank.rst

Lines changed: 3 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,13 @@ NotBlank
22
========
33

44
Validates that a value is not blank - meaning not equal to a blank string,
5-
a blank array, ``false`` or ``null`` (null behavior is configurable). To check
6-
that a value is not equal to ``null``, see the
7-
:doc:`/reference/constraints/NotNull` constraint.
5+
a blank array, ``false`` or ``null``. To check that a value is not equal to
6+
``null``, see the :doc:`/reference/constraints/NotNull` constraint.
87

98
+----------------+------------------------------------------------------------------------+
109
| Applies to | :ref:`property or method <validation-property-target>` |
1110
+----------------+------------------------------------------------------------------------+
12-
| Options | - `allowNull`_ |
13-
| | - `message`_ |
11+
| Options | - `message`_ |
1412
| | - `payload`_ |
1513
+----------------+------------------------------------------------------------------------+
1614
| Class | :class:`Symfony\\Component\\Validator\\Constraints\\NotBlank` |
@@ -83,18 +81,6 @@ class were not blank, you could do the following:
8381
Options
8482
-------
8583

86-
allowNull
87-
~~~~~~~~~
88-
89-
**type**: ``bool`` **default**: ``false``
90-
91-
If set to ``true``, ``null`` values are considered valid and won't trigger a
92-
constraint violation.
93-
94-
.. versionadded:: 4.3
95-
96-
The ``allowNull`` option was introduced in Symfony 4.3.
97-
9884
message
9985
~~~~~~~
10086

0 commit comments

Comments
 (0)