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
Changelog
| Version |
Description |
| 1.0.0 |
Renamed from String to StringType |
| 0.3.9 |
Created as String |
See Also