Merge pull request #256 from vlucas/iss255

Better PHPDoc:
fix incorrect phpdoc for callable
add phpdoc for callable where needed
This commit is contained in:
Willem Wollebrants 2018-06-27 09:23:19 +02:00 committed by GitHub
commit 3511ad84af
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1079,7 +1079,7 @@ class Validator
* instance only. * instance only.
* *
* @param string $name * @param string $name
* @param mixed $callback * @param callable $callback
* @param string $message * @param string $message
* @throws \InvalidArgumentException * @throws \InvalidArgumentException
*/ */
@ -1095,7 +1095,7 @@ class Validator
* Register new validation rule callback * Register new validation rule callback
* *
* @param string $name * @param string $name
* @param mixed $callback * @param callable $callback
* @param string $message * @param string $message
* @throws \InvalidArgumentException * @throws \InvalidArgumentException
*/ */
@ -1147,7 +1147,7 @@ class Validator
/** /**
* Convenience method to add a single validation rule * Convenience method to add a single validation rule
* *
* @param string|callback $rule * @param string|callable $rule
* @param array|string $fields * @param array|string $fields
* @return $this * @return $this
* @throws \InvalidArgumentException * @throws \InvalidArgumentException