Browse Source

fixed class check

Lukas Kahwe Smith 13 years ago
parent
commit
2998d4052e
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Serializer/Handler/ObjectBasedCustomHandler.php

+ 1 - 1
Serializer/Handler/ObjectBasedCustomHandler.php

@@ -29,7 +29,7 @@ class ObjectBasedCustomHandler implements SerializationHandlerInterface, Deseria
 
     public function deserialize(VisitorInterface $visitor, $data, $type, &$handled)
     {
-        if (!in_array('JMS\SerializerBundle\Serializer\Handler\DeserializationHandlerInterface', class_implements($type))) {
+        if (!class_exists($type) || !in_array('JMS\SerializerBundle\Serializer\Handler\DeserializationHandlerInterface', class_implements($type))) {
             return;
         }