all encoders implement EncoderInterface
This commit is contained in:
parent
e694397f16
commit
c3acd5df54
@ -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]);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Reference in New Issue
Block a user