mirror of
https://github.com/Respect/Validation.git
synced 2026-03-16 23:35:45 +01:00
493 B
493 B
NoneOf
NoneOf(Validatable ...$rule)
Validates if NONE of the given validators validate:
v::noneOf(
v::intVal(),
v::floatVal()
)->validate('foo'); // true
In the sample above, 'foo' isn't a integer nor a float, so noneOf returns true.
Categorization
- Composite
- Nesting
Changelog
| Version | Description |
|---|---|
| 0.3.9 | Created |
See also: