mirror of
https://github.com/vlucas/valitron.git
synced 2025-12-30 23:01:52 +00:00
Merge pull request #282 from vlucas/iss281
use correct typehint for callable, fix #281
This commit is contained in:
commit
c3b4dac858
@ -1246,7 +1246,7 @@ class Validator
|
||||
/**
|
||||
* Convenience method to add a single validation rule
|
||||
*
|
||||
* @param string|callback $rule
|
||||
* @param string|callable $rule
|
||||
* @param array|string $fields
|
||||
* @return Validator
|
||||
* @throws \InvalidArgumentException
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user