diff --git a/Constraints/TypeValidator.php b/Constraints/TypeValidator.php index cb0a56368..5e7c38aec 100644 --- a/Constraints/TypeValidator.php +++ b/Constraints/TypeValidator.php @@ -45,7 +45,7 @@ public function isValid($value, Constraint $constraint) } $this->setMessage($constraint->message, array( - '{{ value }}' => is_object($value) ? get_class($value) : (string)$value, + '{{ value }}' => is_object($value) ? get_class($value) : is_array($value) ? 'Array' : (string) $value, '{{ type }}' => $constraint->type, ));