Skip to content

Commit

Permalink
CS
Browse files Browse the repository at this point in the history
  • Loading branch information
Toflar committed Feb 18, 2021
1 parent 9bc8e63 commit a317821
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Serializer.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public function denormalize($data, $class, $format = null, array $context = [])
}

if (is_iterable($data)) {
$class = ($class === '') ? 'stdClass' : $class;
$class = ('' === $class) ? 'stdClass' : $class;

return parent::denormalize($data, $class.'[]', $format, $context);
}
Expand Down

0 comments on commit a317821

Please sign in to comment.