Kaynağa Gözat

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

Jordi Boggiano 14 yıl önce
ebeveyn
işleme
fe7119da8a

+ 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);
     }
 
     /**