mirror of
https://github.com/Respect/Validation.git
synced 2026-03-17 23:59:51 +01:00
Some codes in the documentation were not code that actually works which can lead to some confusion of how to use Validation. Signed-off-by: Henrique Moody <henriquemoody@gmail.com>
668 B
668 B
CallableType
CallableType()
Validates whether the pseudo-type of the input is callable.
v::callableType()->validate(function () {}); // true
v::callableType()->validate('trim'); // true
v::callableType()->validate([new DateTime(), 'format']); // true
Changelog
| Version | Description |
|---|---|
| 1.0.0 | Created |
See also: