mirror of
https://github.com/Respect/Validation.git
synced 2026-03-18 08:09:51 +01:00
954 B
954 B
ScalarVal
ScalarVal()
Validates whether the input is a scalar value or not.
v::scalarVal()->isValid([]); // false
v::scalarVal()->isValid(135.0); // true
Templates
ScalarVal::TEMPLATE_STANDARD
| Mode | Template |
|---|---|
default |
{{name}} must be a scalar value |
inverted |
{{name}} must not be a scalar value |
Template placeholders
| Placeholder | Description |
|---|---|
name |
The validated input or the custom validator name (if specified). |
Categorization
- Types
Changelog
| Version | Description |
|---|---|
| 1.0.0 | Created |
See also: