mirror of
https://github.com/Respect/Validation.git
synced 2024-06-01 21:32:14 +02:00
3501192293
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> |
||
---|---|---|
bin | ||
data/iso_3166-2 | ||
docs | ||
library | ||
tests | ||
.docheader | ||
.gitattributes | ||
.gitignore | ||
.php_cs | ||
.scrutinizer.yml | ||
.travis.yml | ||
CHANGELOG.md | ||
composer.json | ||
CONTRIBUTING.md | ||
couscous.yml | ||
LICENSE | ||
mkdocs.yml | ||
phpcs.xml.dist | ||
phpstan.neon.dist | ||
phpunit.xml.dist | ||
README.md |