Commit 3ff1ecf
committed
minor #15028 [Validator] Mention IsNull in Basic Constraints (wkania)
This PR was merged into the 4.4 branch.
Discussion
----------
[Validator] Mention IsNull in Basic Constraints
[Email](https://symfony.com/doc/4.4/reference/constraints/Email.html), [Date](https://symfony.com/doc/4.4/reference/constraints/Date.html), [File](https://symfony.com/doc/4.4/reference/constraints/File.html) and other string constraints have note:
> As with most of the other constraints, null and empty strings are considered valid values. This is to allow them to be optional values. If the value is mandatory, a common solution is to combine this constraint with NotBlank.
This pull request adds a note about `null` to Basic Constraints. Empty/Blank string is an invalid value for them. That's why I added a new note.
Commits
-------
69f9db3 [Validator] Mention IsNull in Basic ConstraintsFile tree
4 files changed
+12
-0
lines changed- reference/constraints
4 files changed
+12
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
107 | 107 | | |
108 | 108 | | |
109 | 109 | | |
| 110 | + | |
| 111 | + | |
110 | 112 | | |
111 | 113 | | |
112 | 114 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
111 | 111 | | |
112 | 112 | | |
113 | 113 | | |
| 114 | + | |
| 115 | + | |
114 | 116 | | |
115 | 117 | | |
116 | 118 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
148 | 148 | | |
149 | 149 | | |
150 | 150 | | |
| 151 | + | |
| 152 | + | |
151 | 153 | | |
152 | 154 | | |
153 | 155 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
0 commit comments