diff --git a/src/Symfony/Extensions/PropertyNormalizerWrapper.php b/src/Symfony/Extensions/PropertyNormalizerWrapper.php index 491cfe4..ac9cc0d 100644 --- a/src/Symfony/Extensions/PropertyNormalizerWrapper.php +++ b/src/Symfony/Extensions/PropertyNormalizerWrapper.php @@ -94,10 +94,10 @@ protected function setAttributeValue(object $object, string $attribute, $value, if (true === isset($object->{$attribute})) { $object->{$attribute} = $value; + + return; } - else - { - parent::setAttributeValue($object, $attribute, $value, $format, $context); - } + + parent::setAttributeValue($object, $attribute, $value, $format, $context); } }