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