Skip to content

Latest commit

 

History

History
60 lines (45 loc) · 1.51 KB

File metadata and controls

60 lines (45 loc) · 1.51 KB

StringType

  • StringType()

Validates whether the type of an input is string or not.

v::stringType()->assert('hi');
// Validation passes successfully

Templates

StringType::TEMPLATE_STANDARD

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

Template placeholders

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

Categorization

  • Strings
  • Types

Changelog

Version Description
1.0.0 Renamed from String to StringType
0.3.9 Created as String

See Also