Skip to content

Latest commit

 

History

History
65 lines (48 loc) · 1.64 KB

File metadata and controls

65 lines (48 loc) · 1.64 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 function
inverted {{subject}} must not be a callable function

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