Skip to content

Commit 7b84701

Browse files
committed
additional_allowed_attributes
1 parent d4d2cd4 commit 7b84701

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Serializer/AbstractItemNormalizer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -420,7 +420,7 @@ protected function getAllowedAttributes(string|object $classOrObject, array $con
420420
$options = $this->getFactoryOptions($context);
421421
$propertyNames = $this->propertyNameCollectionFactory->create($resourceClass, $options);
422422

423-
$allowedAttributes = [];
423+
$allowedAttributes = $context['additional_allowed_attributes'] ?? [];
424424
foreach ($propertyNames as $propertyName) {
425425
$propertyMetadata = $this->propertyMetadataFactory->create($resourceClass, $propertyName, $options);
426426

0 commit comments

Comments
 (0)