diff --git a/src/Symfony/Component/PropertyInfo/DependencyInjection/PropertyInfoPass.php b/src/Symfony/Component/PropertyInfo/DependencyInjection/PropertyInfoPass.php index 3ebf838cc4..f45514888f 100644 --- a/src/Symfony/Component/PropertyInfo/DependencyInjection/PropertyInfoPass.php +++ b/src/Symfony/Component/PropertyInfo/DependencyInjection/PropertyInfoPass.php @@ -66,6 +66,6 @@ class PropertyInfoPass implements CompilerPassInterface $definition->replaceArgument(3, new IteratorArgument($accessExtractors)); $initializableExtractors = $this->findAndSortTaggedServices($this->initializableExtractorTag, $container); - $definition->replaceArgument(4, new IteratorArgument($initializableExtractors)); + $definition->setArgument(4, new IteratorArgument($initializableExtractors)); } }