Skip to content

Latest commit

 

History

History
56 lines (41 loc) · 1.32 KB

File metadata and controls

56 lines (41 loc) · 1.32 KB

CallableType

  • CallableType()

Validates whether the pseudo-type of the input is callable.

v::callableType()->isValid(function () {}); // true
v::callableType()->isValid('trim'); // true
v::callableType()->isValid([new DateTime(), 'format']); // true

Templates

CallableType::TEMPLATE_STANDARD

Mode Template
default {{subject}} must be a callable
inverted {{subject}} must not be a callable

Template placeholders

Placeholder Description
subject The validated input or the custom validator name (if specified).

Categorization

  • Callables
  • Types

Changelog

Version Description
1.0.0 Created

See also: