8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d021dc8 commit 2a6741cCopy full SHA for 2a6741c
src/Symfony/Component/Serializer/Serializer.php
@@ -272,7 +272,7 @@ public function supportsDecoding($format)
272
private function getEncoder($format)
273
{
274
if (isset($this->encoderByFormat[$format])
275
- && isset($this->encoderByFormat[$format])
+ && isset($this->encoders[$this->encoderByFormat[$format]])
276
) {
277
return $this->encoders[$this->encoderByFormat[$format]];
278
}
@@ -293,7 +293,7 @@ private function getEncoder($format)
293
private function getDecoder($format)
294
295
if (isset($this->decoderByFormat[$format])
296
- && isset($this->decoderByFormat[$format])
+ && isset($this->encoders[$this->decoderByFormat[$format]])
297
298
return $this->encoders[$this->decoderByFormat[$format]];
299
0 commit comments