mirror of
https://github.com/vlucas/valitron.git
synced 2025-12-31 07:01:54 +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
|
// Get any other arguments passed to function
|
||||||
$params = array_slice(func_get_args(), 2);
|
$params = array_slice(func_get_args(), 2);
|
||||||
|
|
||||||
$this->_validations[] = array(
|
$this->_validations[$rule] = array(
|
||||||
'rule' => $rule,
|
'rule' => $rule,
|
||||||
'fields' => (array) $fields,
|
'fields' => (array) $fields,
|
||||||
'params' => (array) $params,
|
'params' => (array) $params,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user