Skip to content

Commit 31209dd

Browse files
authored
Update AbstractObjectNormalizer.php
Revert false positive
1 parent 1ed8793 commit 31209dd

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -289,6 +289,8 @@ abstract protected function extractAttributes(object $object, ?string $format =
289289

290290
/**
291291
* Gets the attribute value.
292+
*
293+
* @return mixed
292294
*/
293295
abstract protected function getAttributeValue(object $object, string $attribute, ?string $format = null, array $context = []);
294296

@@ -302,6 +304,9 @@ public function supportsDenormalization(mixed $data, string $type, ?string $form
302304
return class_exists($type) || (interface_exists($type, false) && null !== $this->classDiscriminatorResolver?->getMappingForClass($type));
303305
}
304306

307+
/*
308+
* @return mixed
309+
*/
305310
public function denormalize(mixed $data, string $type, ?string $format = null, array $context = [])
306311
{
307312
$context['_read_attributes'] = false;

0 commit comments

Comments
 (0)