mirror of
https://github.com/Respect/Validation.git
synced 2024-06-01 13:22:24 +02:00
83bb6e3fc9
When a template is set for a chain of rules, does not really matter which messages the chain can have, the only message to be used should be the one based on the defined template. This commit set the same template of a parent rule to its children's exception. Our first thought was to set the template to its children however that would mean that if another rule would be added to the chain we would have to set it as well. Doing that to the children's exception make sure we only do that once. Co-authored-by: Henrique Moody <henriquemoody@gmail.com> |
||
---|---|---|
docs | ||
library | ||
tests | ||
.gitignore | ||
.php_cs | ||
.scrutinizer.yml | ||
.travis.yml | ||
CHANGELOG.md | ||
composer.json | ||
CONTRIBUTING.md | ||
couscous.yml | ||
LICENSE.md | ||
phpunit.xml.dist | ||
README.md |
Respect\Validation
The most awesome validation engine ever created for PHP.
- Complex rules made simple:
v::numeric()->positive()->between(1, 255)->validate($input)
. - Granularity control for advanced reporting.
- More than 100 (fully tested) validators.
- A concrete API for non fluent usage.
- Works on PHP 5.4+ or HHVM 3.3+