Skip to content

Latest commit

 

History

History
63 lines (46 loc) · 1.47 KB

File metadata and controls

63 lines (46 loc) · 1.47 KB

CallableType

  • CallableType()

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

v::callableType()->assert(function () {});
// Validation passes successfully

v::callableType()->assert('trim');
// Validation passes successfully

v::callableType()->assert([new DateTime(), 'format']);
// Validation passes successfully

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