[Serializer] Fixed typo

This commit is contained in:
Jordi Boggiano 2011-05-08 18:34:06 +02:00
parent 9311b0a7e5
commit 3b88608d85

View File

@ -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);