From b639814a7e09acc0813ecb41d2d61aee58939980 Mon Sep 17 00:00:00 2001 From: Diego Sala Date: Tue, 16 Jul 2013 15:18:10 -0300 Subject: [PATCH] Fix for issue #17 --- src/Valitron/Validator.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Valitron/Validator.php b/src/Valitron/Validator.php index 76800bb..bc5b049 100644 --- a/src/Valitron/Validator.php +++ b/src/Valitron/Validator.php @@ -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,