Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 24133df

Browse files
authored
fix: merge (#5693)
1 parent 370bd07 commit 24133df

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

src/Serializer/AbstractItemNormalizer.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -649,6 +649,11 @@ protected function getAttributeValue(object $object, string $attribute, string $
649649
throw new LogicException(sprintf('The injected serializer must be an instance of "%s".', NormalizerInterface::class));
650650
}
651651

652+
unset(
653+
$context['resource_class'],
654+
$context['force_resource_class'],
655+
);
656+
652657
if ($type->getClassName()) {
653658
$childContext = $this->createChildContext($context, $attribute, $format);
654659
unset($childContext['iri'], $childContext['uri_variables'], $childContext['resource_class'], $childContext['force_resource_class']);

0 commit comments

Comments
 (0)