all encoders implement EncoderInterface

This commit is contained in:
Lukas Kahwe Smith 2011-05-27 19:15:52 +02:00
parent e694397f16
commit c3acd5df54

View File

@ -204,7 +204,7 @@ class Serializer implements SerializerInterface
*/ */
public function hasEncoder($format) public function hasEncoder($format)
{ {
return isset($this->encoder[$format]) && $this->encoder[$format] instanceof EncoderInterface; return isset($this->encoder[$format]);
} }
/** /**