IntType

February 3, 2026 · View on GitHub

  • IntType()

Validates whether the type of the input is integer.

v::intType()->assert(42);
// Validation passes successfully

v::intType()->assert('10');
// → "10" must be an integer

Templates

IntType::TEMPLATE_STANDARD

ModeTemplate
default{{subject}} must be an integer
inverted{{subject}} must not be an integer

Template placeholders

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

Categorization

  • Numbers
  • Types

Changelog

VersionDescription
1.0.0Created

See Also