respect-validation/library
Dylan T 3501192293
Report all errors when asserting with "Each" rule
The intention of the "assert()" method is to show all the errors that a
given input may have. The implementation of the "assert()" method in the
"Each" rule, on the other hand, only reports the first error of each
element of the input.

This commit makes "Each" show all the validation failures of each
element of the input. Also, the implementation of
"AbstractRule::check()" is simply a proxy for the "assert()" method,
and since the "Each" rule extends that class, this commit creates a
custom implementation of the "check()" method.

Co-authored-by: Henrique Moody <henriquemoody@gmail.com>
2020-05-18 21:18:13 +02:00
..
Exceptions Fix possible error when recursing exceptions 2020-04-04 21:01:30 +02:00
Helpers Turn LICENSE file into plain/text 2019-05-23 16:21:34 +02:00
Message Turn LICENSE file into plain/text 2019-05-23 16:21:34 +02:00
Rules Report all errors when asserting with "Each" rule 2020-05-18 21:18:13 +02:00
Factory.php Turn LICENSE file into plain/text 2019-05-23 16:21:34 +02:00
Validatable.php Turn LICENSE file into plain/text 2019-05-23 16:21:34 +02:00
Validator.php Update docblock from "when" rule 2020-04-16 17:24:58 +02:00