소스 검색

[Serializer] Fixed typo

Jordi Boggiano 14 년 전
부모
커밋
3b88608d85
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/Symfony/Component/Serializer/Serializer.php

+ 1 - 1
src/Symfony/Component/Serializer/Serializer.php

@@ -43,7 +43,7 @@ class Serializer implements SerializerInterface
         if (!$this->hasEncoder($format)) {
             throw new \UnexpectedValueException('No encoder registered for the '.$format.' format');
         }
-        if ($this->getEncoder($format) instanceof NormalizationAwareInterface) {
+        if (!$this->getEncoder($format) instanceof NormalizationAwareInterface) {
             $data = $this->normalize($data);
         }
         return $this->encode($data, $format);