mirror of
https://github.com/vlucas/valitron.git
synced 2025-12-31 07:01:54 +00:00
use correct typehint for callable
This commit is contained in:
parent
c6893fc67e
commit
dfde682d93
@ -1229,7 +1229,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 Validator
|
* @return Validator
|
||||||
* @throws \InvalidArgumentException
|
* @throws \InvalidArgumentException
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user