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

This commit is contained in:
Fabien Potencier 2011-11-11 23:22:12 +01:00
parent 1940bec31b
commit fb0fffe6db

View File

@ -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,
));