Skip to content

Commit c544fd6

Browse files
committed
Remove useless is_object condition
1 parent 7f755cd commit c544fd6

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

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)