NullType()
Validates whether the input is null.
v::nullType()->assert(null);
// Validation passes successfully| Mode | Template |
|---|---|
default |
{{subject}} must be null |
inverted |
{{subject}} must not be null |
| Placeholder | Description |
|---|---|
subject |
The validated input or the custom validator name (if specified). |
- Types
| Version | Description |
|---|---|
| 1.0.0 | Renamed from NullValue to NullType |
| 0.3.9 | Created as NullValue |