diff --git a/code/ZenValidatorConstraint.php b/code/ZenValidatorConstraint.php index b6bc3fa..7cda442 100644 --- a/code/ZenValidatorConstraint.php +++ b/code/ZenValidatorConstraint.php @@ -379,7 +379,12 @@ public function removeParsley() public function validate($value) { - $array = array_filter(explode(',', $value)); + if (is_string($value)) { + $array = array_filter(explode(',', $value)); + } else { + $array = $value; + } + if (empty($array)) { return; //you should use required instead }