Permalink
Browse files

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

  • Loading branch information...
1 parent c78ad33 commit 1598d44dbd03c8d7005249af7a033b2334e391a9 @fabpot fabpot committed Nov 11, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 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,
));

0 comments on commit 1598d44

Please sign in to comment.