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
| Mode | Template |
|---|---|
default | {{subject}} must be an object |
inverted | {{subject}} must not be an object |
Template placeholders
| Placeholder | Description |
|---|---|
subject | The validated input or the custom validator name (if specified). |
Categorization
- Objects
- Types
Changelog
| Version | Description |
|---|---|
| 1.0.0 | Renamed from Object to ObjectType |
| 0.3.9 | Created as Object |