mirror of
https://github.com/Respect/Validation.git
synced 2024-06-03 06:12:17 +02:00
78715fb844
This rule resembles a proper replacement for the old "KeyValue" rule
rather than the "LazyConsecutive" rule[1]. I will soon delete the
"LazyConsecutive" rule and replace it with something else.
[1]: 41245f663f
Signed-off-by: Henrique Moody <henriquemoody@gmail.com>
800 B
800 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
Categorization
- Callables
- Types
Changelog
Version | Description |
---|---|
1.0.0 | Created |
See also: