respect-validation/docs/rules/StringType.md
Henrique Moody 10df3211f5
Add "Categorization" section to rule documentations
Signed-off-by: Henrique Moody <henriquemoody@gmail.com>
2019-05-11 19:16:21 +02:00

40 lines
704 B
Markdown

# StringType
- `StringType()`
Validates whether the type of an input is string or not.
```php
v::stringType()->validate('hi'); // true
```
## Categorization
- Strings
- Types
## Changelog
Version | Description
--------|-------------
1.0.0 | Renamed from `String` to `StringType`
0.3.9 | Created as `String`
***
See also:
- [Alnum](Alnum.md)
- [ArrayType](ArrayType.md)
- [BoolType](BoolType.md)
- [BoolVal](BoolVal.md)
- [CallableType](CallableType.md)
- [FloatType](FloatType.md)
- [IntType](IntType.md)
- [NullType](NullType.md)
- [Number](Number.md)
- [ObjectType](ObjectType.md)
- [ResourceType](ResourceType.md)
- [ScalarVal](ScalarVal.md)
- [StringVal](StringVal.md)
- [Type](Type.md)