mirror of
https://github.com/Respect/Validation.git
synced 2026-03-17 15:50:03 +01:00
623 B
623 B
CallableType
CallableType()
Validates if the input is a callable value.
v::callableType()->validate(function () {}); // true
v::callableType()->validate('trim'); // true
v::callableType()->validate([new ObjectType, 'methodName']); // true
Changelog
| Version | Description |
|---|---|
| 1.0.0 | Created |
See also: