mirror of
https://github.com/Respect/Validation.git
synced 2024-06-29 02:30:06 +02:00
When using nested "Not" and "AllOf" rules Validation does not fetch the message of the rule that failed, and instead it fetches the default message in "AllOfException." That is because "Not" cannot reach the rules inside "AllOf," making it impossible to fetch the correct message. This commit will improve that a bit but making "Not" deal directly with the rule inside "AllOf" when it has only one rule. Unfortunately, it will not fix all the issues. For example, when the negated rule is an "AllOf" with multiple rules and it fails "Not" will fetch only the first message. Signed-off-by: Henrique Moody <henriquemoody@gmail.com> |
||
---|---|---|
.. | ||
Exceptions | ||
Helpers | ||
Rules | ||
Factory.php | ||
Validatable.php | ||
Validator.php |