Jelajahi Sumber

cosmetic tweak

Lukas Kahwe Smith 14 tahun lalu
induk
melakukan
64c8a1ab8c
1 mengubah file dengan 5 tambahan dan 2 penghapusan
  1. 5 2
      src/Symfony/Component/Serializer/Serializer.php

+ 5 - 2
src/Symfony/Component/Serializer/Serializer.php

@@ -75,8 +75,11 @@ class Serializer implements SerializerInterface
     /**
      * {@inheritdoc}
      */
-    public final function deserialize($data, $type, $format) {
-        return $this->denormalize($this->decode($data, $format), $type, $format);
+    public final function deserialize($data, $type, $format)
+    {
+        $data = $this->decode($data, $format);
+
+        return $this->denormalize($data, $type, $format);
     }
 
     /**