mirror of
https://github.com/Respect/Validation.git
synced 2024-06-08 00:32:16 +02:00
020ea1ebb5
The "@param" tag uses phpdoc types. However the "@method" tag uses PHP's type declarations. Therefore, "mixed" refers to a class whose literal name is mixed and not the "mixed" keyword. Since "mixed" is not a valid class name in this context, the type paramaters should be removed. Additionally, the "callable" type paramater can be used on the "callback" validation method. References: [1]: http://docs.phpdoc.org/references/phpdoc/tags/param.html [2]: http://docs.phpdoc.org/references/phpdoc/types.html [3]: http://docs.phpdoc.org/references/phpdoc/tags/method.html [4]: http://php.net/functions.arguments#functions.arguments.type-declaration [5]: http://docs.phpdoc.org/references/phpdoc/types.html Reviewed-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+