CallableType()
Validates whether the pseudo-type of the input is callable.
v::callableType()->isValid(function () {}); // true
v::callableType()->isValid('trim'); // true
v::callableType()->isValid([new DateTime(), 'format']); // true| Mode | Template |
|---|---|
default |
{{subject}} must be a callable |
inverted |
{{subject}} must not be a callable |
| Placeholder | Description |
|---|---|
subject |
The validated input or the custom validator name (if specified). |
- Callables
- Types
| Version | Description |
|---|---|
| 1.0.0 | Created |
See also: