Jelajahi Sumber

[Form] Implemented fix for 361c67f54f4fee5a6003efdac56d8e0f5ed02c86

Bernhard Schussek 14 tahun lalu
induk
melakukan
06f829ace5

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

@@ -32,7 +32,7 @@ class TypeValidator extends ConstraintValidator
         }
 
         $this->setMessage($constraint->message, array(
-            '{{ value }}' => $value,
+            '{{ value }}' => is_object($value) ? get_class($value) : (string)$value,
             '{{ type }}'  => $constraint->type,
         ));