ObjectType

February 3, 2026 ยท View on GitHub

  • ObjectType()

Validates whether the input is an object.

v::objectType()->assert(new stdClass);
// Validation passes successfully

Templates

ObjectType::TEMPLATE_STANDARD

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

Template placeholders

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

Categorization

  • Objects
  • Types

Changelog

VersionDescription
1.0.0Renamed from Object to ObjectType
0.3.9Created as Object

See Also