From b2b4776fd77e379b9bf5afc44a19d12e9dbf3945 Mon Sep 17 00:00:00 2001 From: Oncle Tom Date: Fri, 12 Aug 2011 11:54:54 +0300 Subject: [PATCH] Added $format in serialize() method, to keep consistence and give a hint to the normalizer. --- Serializer.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Serializer.php b/Serializer.php index c7156f3a5..835271a80 100644 --- a/Serializer.php +++ b/Serializer.php @@ -69,7 +69,7 @@ public final function serialize($data, $format) $encoder = $this->getEncoder($format); if (!$encoder instanceof NormalizationAwareInterface) { - $data = $this->normalize($data); + $data = $this->normalize($data, $format); } return $this->encode($data, $format);