mirror of
https://github.com/vlucas/valitron.git
synced 2025-12-30 23:01:52 +00:00
Merge pull request #173 from EgorGruzdev/master
Fix doctype declaration for rule method. Allows both array and string for $field parameter
This commit is contained in:
commit
28d5a5a0a3
@ -1084,7 +1084,7 @@ class Validator
|
||||
* Convenience method to add a single validation rule
|
||||
*
|
||||
* @param string|callback $rule
|
||||
* @param array $fields
|
||||
* @param array|string $fields
|
||||
* @return $this
|
||||
* @throws \InvalidArgumentException
|
||||
*/
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user