8000 Remove useless is_object condition · symfony/symfony@f6fd5e4 · GitHub
[go: up one dir, main page]

Skip to content

Commit f6fd5e4

Browse files
committed
Remove useless is_object condition
1 parent 31aef7b commit f6fd5e4

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

src/Symfony/Component/Serializer/Serializer.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -185,10 +185,6 @@ public function supportsDenormalization($data, $type, $format = null)
185185
*/
186186
private function getNormalizer($data, $format)
187187
{
188-
if ($isObject = is_object($data)) {
189-
$class = get_class($data);
190-
}
191-
192188
foreach ($this->normalizers as $normalizer) {
193189
if ($normalizer instanceof NormalizerInterface && $normalizer->supportsNormalization($data, $format)) {
194190
return $normalizer;

0 commit comments

Comments
 (0)
0