Selaa lähdekoodia

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

Jordi Boggiano 14 vuotta sitten
vanhempi
commit
fe7119da8a
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  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);
     }
 
     /**