Skip to content

Commit 718d4de

Browse files
committed
Narrow TimestampedNormalizer::getSupportedTypes() to object types
1 parent 7ceddfd commit 718d4de

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

src/Serializer/Normalizer/TimestampedNormalizer.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,9 +63,8 @@ public function denormalize($data, $type, $format = null, array $context = []):
6363
return $object;
6464
}
6565

66-
// TODO: is this only for objects?
6766
public function getSupportedTypes(?string $format): array
6867
{
69-
return ['*' => false];
68+
return ['object' => false];
7069
}
7170
}

0 commit comments

Comments
 (0)