Skip to content

Commit 162edc5

Browse files
committed
Fix constructor argument order for service decoration
Move $decorated parameter to the end of the constructor to match Symfony's parent service argument inheritance when using decorates.
1 parent e33b733 commit 162edc5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Serializer/ExportAwareItemNormalizer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@ public function __construct(
4343
PropertyMetadataFactoryInterface $propertyMetadataFactory,
4444
IriConverterInterface $iriConverter,
4545
ResourceClassResolverInterface $resourceClassResolver,
46-
private AbstractItemNormalizer $decorated,
4746
?PropertyAccessorInterface $propertyAccessor = null,
4847
?NameConverterInterface $nameConverter = null,
4948
?ClassMetadataFactoryInterface $classMetadataFactory = null,
@@ -52,6 +51,7 @@ public function __construct(
5251
?ResourceAccessCheckerInterface $resourceAccessChecker = null,
5352
array $defaultContext = [],
5453
?TagCollectorInterface $tagCollector = null,
54+
private ?AbstractItemNormalizer $decorated = null,
5555
) {
5656
parent::__construct(
5757
$propertyNameCollectionFactory,

0 commit comments

Comments
 (0)