File tree Expand file tree Collapse file tree 1 file changed +3
-17
lines changed Expand file tree Collapse file tree 1 file changed +3
-17
lines changed Original file line number Diff line number Diff line change @@ -2,15 +2,13 @@ NotBlank
2
2
========
3
3
4
4
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.
8
7
9
8
+----------------+------------------------------------------------------------------------+
10
9
| Applies to | :ref: `property or method <validation-property-target >` |
11
10
+----------------+------------------------------------------------------------------------+
12
- | Options | - `allowNull `_ |
13
- | | - `message `_ |
11
+ | Options | - `message `_ |
14
12
| | - `payload `_ |
15
13
+----------------+------------------------------------------------------------------------+
16
14
| Class | :class: `Symfony\\ Component\\ Validator\\ Constraints\\ NotBlank ` |
@@ -83,18 +81,6 @@ class were not blank, you could do the following:
83
81
Options
84
82
-------
85
83
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
-
98
84
message
99
85
~~~~~~~
100
86
You can’t perform that action at this time.
0 commit comments