8000 typo fix · symfony/symfony@2a6741c · GitHub
[go: up one dir, main page]

Skip to content

Commit 2a6741c

Browse files
committed
typo fix
1 parent d021dc8 commit 2a6741c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Symfony/Component/Serializer/Serializer.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,7 @@ public function supportsDecoding($format)
272272
private function getEncoder($format)
273273
{
274274
if (isset($this->encoderByFormat[$format])
275-
&& isset($this->encoderByFormat[$format])
275+
&& isset($this->encoders[$this->encoderByFormat[$format]])
276276
) {
277277
return $this->encoders[$this->encoderByFormat[$format]];
278278
}
@@ -293,7 +293,7 @@ private function getEncoder($format)
293293
private function getDecoder($format)
294294
{
295295
if (isset($this->decoderByFormat[$format])
296-
&& isset($this->decoderByFormat[$format])
296+
&& isset($this->encoders[$this->decoderByFormat[$format]])
297297
) {
298298
return $this->encoders[$this->decoderByFormat[$format]];
299299
}

0 commit comments

Comments
 (0)
0