respect-validation/docs/rules/CallableType.md
Henrique Moody 10df3211f5
Add "Categorization" section to rule documentations
Signed-off-by: Henrique Moody <henriquemoody@gmail.com>
2019-05-11 19:16:21 +02:00

782 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: