mirror of
https://github.com/Respect/Validation.git
synced 2024-06-13 19:22:16 +02:00
cea77d2a46
The "Max" rule is not a transformation, validating the maximum value in the input against a given rule. Signed-off-by: Henrique Moody <henriquemoody@gmail.com>
880 B
880 B
IterableType
IterableType()
Validates whether the input is iterable, meaning that it matches the built-in compile time type alias iterable
.
v::iterableType()->validate([]); // true
v::iterableType()->validate(new ArrayObject()); // true
v::iterableType()->validate(new stdClass()); // false
v::iterableType()->validate('string'); // false
Categorization
- Types
Changelog
Version | Description |
---|---|
3.0.0 | Rejected stdClass as iterable |
1.0.8 | Renamed from Iterable to IterableType |
1.0.0 | Created as Iterable |
See also: