mirror of
https://github.com/vlucas/valitron.git
synced 2025-12-30 23:01:52 +00:00
make phpdoc more specific for parameter in Validator::addInstanceRule and Validator::addRule, both need a callable
This commit is contained in:
parent
3908f086e0
commit
fcaa1d5d52
@ -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
|
||||||
*/
|
*/
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user