Skip to content

Commit

Permalink
[Serializer] Fixed typo
Browse files Browse the repository at this point in the history
  • Loading branch information
Seldaek committed May 8, 2011
1 parent 9311b0a commit 3b88608
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Symfony/Component/Serializer/Serializer.php
Expand Up @@ -43,7 +43,7 @@ public function serialize($data, $format)
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);
Expand Down

0 comments on commit 3b88608

Please sign in to comment.