NullType

February 3, 2026 ยท View on GitHub

  • NullType()

Validates whether the input is null.

v::nullType()->assert(null);
// Validation passes successfully

Templates

NullType::TEMPLATE_STANDARD

ModeTemplate
default{{subject}} must be null
inverted{{subject}} must not be null

Template placeholders

PlaceholderDescription
subjectThe validated input or the custom validator name (if specified).

Categorization

  • Types

Changelog

VersionDescription
1.0.0Renamed from NullValue to NullType
0.3.9Created as NullValue

See Also