mirror of
https://github.com/vlucas/valitron.git
synced 2025-12-30 23:01:52 +00:00
Pass $this->_fields to callbacks defined in addRule
This commit is contained in:
parent
d2b63c6119
commit
3ee508987e
@ -885,7 +885,7 @@ class Validator
|
||||
|
||||
$result = true;
|
||||
foreach ($values as $value) {
|
||||
$result = $result && call_user_func($callback, $field, $value, $v['params']);
|
||||
$result = $result && call_user_func($callback, $field, $value, $v['params'], $this->_fields);
|
||||
}
|
||||
|
||||
if (!$result) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user