Skip to content

Commit

Permalink
fix: merge (#5693)
Browse files Browse the repository at this point in the history
  • Loading branch information
dunglas authored Jul 24, 2023
1 parent 370bd07 commit 24133df
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/Serializer/AbstractItemNormalizer.php
Original file line number Diff line number Diff line change
Expand Up @@ -649,6 +649,11 @@ protected function getAttributeValue(object $object, string $attribute, string $
throw new LogicException(sprintf('The injected serializer must be an instance of "%s".', NormalizerInterface::class));
}

unset(
$context['resource_class'],
$context['force_resource_class'],
);

if ($type->getClassName()) {
$childContext = $this->createChildContext($context, $attribute, $format);
unset($childContext['iri'], $childContext['uri_variables'], $childContext['resource_class'], $childContext['force_resource_class']);
Expand Down

0 comments on commit 24133df

Please sign in to comment.