[Validator] fixed a unit test for PHP 5.4 (closes #2585)
This commit is contained in:
parent
1940bec31b
commit
fb0fffe6db
@ -45,7 +45,7 @@ class TypeValidator extends ConstraintValidator
|
|||||||
}
|
}
|
||||||
|
|
||||||
$this->setMessage($constraint->message, array(
|
$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,
|
'{{ type }}' => $constraint->type,
|
||||||
));
|
));
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user