Skip to content

Commit

Permalink
[Validator] fixed a unit test for PHP 5.4 (closes #2585)
Browse files Browse the repository at this point in the history
  • Loading branch information
fabpot committed Nov 11, 2011
1 parent c78ad33 commit 1598d44
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Constraints/TypeValidator.php
Expand Up @@ -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,
));

Expand Down

0 comments on commit 1598d44

Please sign in to comment.