mirror of
https://github.com/Respect/Validation.git
synced 2024-06-26 17:20:16 +02:00
10df3211f5
Signed-off-by: Henrique Moody <henriquemoody@gmail.com>
885 B
885 B
Type
Type(string $type)
Validates the type of input.
v::type('bool')->validate(true); // true
v::type('callable')->validate(function (){}); // true
v::type('object')->validate(new stdClass()); // true
Categorization
- Types
Changelog
Version | Description |
---|---|
2.0.0 | Became case-sensitive |
0.8.0 | Created |
See also: