mirror of
https://github.com/Respect/Validation.git
synced 2024-06-13 19:22:16 +02:00
2610a380dc
With this and the Lazy rule, the LazyConsecutive lost its purpose. While working on it, I did refactor the Domain rule a bit, but mainly to check how this rule could behave. Signed-off-by: Henrique Moody <henriquemoody@gmail.com>
615 B
615 B
NoneOf
NoneOf(Validatable $rule1, Validatable $rule2, 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 |
---|---|
3.0.0 | Require at least two rules to be passed |
0.3.9 | Created |
See also: