Browse Source

[Validator] fixed a unit test for PHP 5.4 (closes #2585)

Fabien Potencier 13 years ago
parent
commit
fb0fffe6db
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/Symfony/Component/Validator/Constraints/TypeValidator.php

+ 1 - 1
src/Symfony/Component/Validator/Constraints/TypeValidator.php

@@ -45,7 +45,7 @@ class TypeValidator extends ConstraintValidator
         }
 
         $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,
         ));