mirror of
https://github.com/vlucas/valitron.git
synced 2025-12-30 23:01:52 +00:00
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:
commit
3511ad84af
@ -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
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user