mirror of
https://github.com/vlucas/valitron.git
synced 2025-12-30 23:01:52 +00:00
Fix for issue #17
This commit is contained in:
parent
60ceeec2b0
commit
b639814a7e
@ -564,7 +564,7 @@ class Validator
|
||||
// Get any other arguments passed to function
|
||||
$params = array_slice(func_get_args(), 2);
|
||||
|
||||
$this->_validations[] = array(
|
||||
$this->_validations[$rule] = array(
|
||||
'rule' => $rule,
|
||||
'fields' => (array) $fields,
|
||||
'params' => (array) $params,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user