Explorar el Código

[Serializer] serialize shouldn't normalize since it's the encoder's job to do that when they require it

Jordi Boggiano hace 14 años
padre
commit
fe7119da8a
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      src/Symfony/Component/Serializer/Serializer.php

+ 1 - 1
src/Symfony/Component/Serializer/Serializer.php

@@ -47,7 +47,7 @@ class Serializer implements SerializerInterface
      */
     public function serialize($data, $format)
     {
-        return $this->encode($this->normalize($data, $format), $format);
+        return $this->encode($data, $format);
     }
 
     /**