Lukas Kahwe Smith преди 13 години
родител
ревизия
2998d4052e
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  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;
         }