respect-validation/library
Henrique Moody 1b844763a9
Improve message when nested "Not" rules fail
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>
2019-04-05 23:32:31 +02:00
..
Exceptions Make some improvements to the "Roman" rule 2019-04-05 20:15:46 +02:00
Helpers Update the Coding Standards 2019-02-17 19:52:26 +01:00
Rules Improve message when nested "Not" rules fail 2019-04-05 23:32:31 +02:00
Factory.php Update the Coding Standards 2019-02-17 19:52:26 +01:00
Validatable.php Apply "SlevomatCodingStandard.TypeHints.TypeHintDeclaration" 2019-02-09 14:09:28 +01:00
Validator.php Fix the case of the "@inheritDoc" tag 2019-04-05 19:02:12 +02:00