Explorar o código

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

Jordi Boggiano %!s(int64=14) %!d(string=hai) anos
pai
achega
fe7119da8a
Modificáronse 1 ficheiros con 1 adicións e 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);
     }
 
     /**