Go to file
Tim Bond 020ea1ebb5
Update type parameters for Validator doc blocks
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>
2018-05-19 16:26:44 +02:00
docs Revert "Elaborated API styles documentation" 2018-05-19 16:17:57 +02:00
library Update type parameters for Validator doc blocks 2018-05-19 16:26:44 +02:00
tests Merge branch '1.0' into 1.1 2018-01-02 22:47:22 +01:00
.gitignore Add "composer.lock" to the .gitignore list 2015-10-17 14:10:41 -03:00
.php_cs Use short array syntax 2015-10-17 22:56:32 -03:00
.scrutinizer.yml Use PSR-2 standard 2015-01-08 00:44:12 -02:00
.travis.yml Run PHP 7.1 on Travis 2016-08-03 09:41:33 +02:00
CHANGELOG.md Update "CHANGELOG.md" file 2016-04-23 22:11:23 -03:00
composer.json Merge branch '1.0' into 1.1 2018-01-02 22:47:22 +01:00
CONTRIBUTING.md Update contributing guidelines 2015-11-18 05:47:35 -02:00
couscous.yml Add Google Analytics tracking ID to "couscous.yml" 2015-02-18 08:49:05 -02:00
LICENSE.md Create "CHANGELOG.md" file 2015-10-07 02:56:23 -03:00
phpunit.xml.dist Create "SubdivisionCode" rule 2015-09-21 13:54:02 -03:00
README.md Revert "Add link to support issues." 2018-05-19 16:17:52 +02:00

Respect\Validation

Build Status Scrutinizer Code Quality Code Coverage Latest Stable Version Total Downloads License

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+

Table of contents