make phpdoc more specific for parameter in Validator::addInstanceRule and Validator::addRule, both need a callable

This commit is contained in:
Willem Wollebrants 2018-06-25 22:18:19 +02:00
parent 3908f086e0
commit fcaa1d5d52

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
*/ */