Skip to content

Latest commit

 

History

History
58 lines (43 loc) · 1.37 KB

File metadata and controls

58 lines (43 loc) · 1.37 KB

BoolType

  • BoolType()

Validates whether the type of the input is boolean.

v::boolType()->isValid(true); // true
v::boolType()->isValid(false); // true

Templates

BoolType::TEMPLATE_STANDARD

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

Template placeholders

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

Categorization

  • Booleans
  • Types

Changelog

Version Description
1.0.0 Renamed from Bool to BoolType
0.3.9 Created as Bool

See also: