Skip to content

Commit 0238782

Browse files
author
Robert
committed
Add support for denormalizing stdClass objects
1 parent 6b44d20 commit 0238782

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/Serializer/Normalizer/ObjectNormalizer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ protected function getAttributeValue(object $object, string $attribute, ?string
139139
*/
140140
protected function setAttributeValue(object $object, string $attribute, mixed $value, ?string $format = null, array $context = [])
141141
{
142-
if (\stdClass::class === get_class($object)) {
142+
if (\stdClass::class === $object::class) {
143143
$object->{$attribute} = $value;
144144

145145
return;

0 commit comments

Comments
 (0)