respect-validation/docs/rules/CallableType.md
Henrique Moody 78715fb844
Create "Lazy" rule
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>
2024-03-06 22:06:44 +01:00

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: