Преглед изворни кода

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

Jordi Boggiano пре 14 година
родитељ
комит
fe7119da8a
1 измењених фајлова са 1 додато и 1 уклоњено
  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);
     }
 
     /**