8000 bug #38091 [DI] fix ContainerBuilder on PHP8 (nicolas-grekas) · symfony/symfony@8e34978 · GitHub
[go: up one dir, main page]

Skip to content
10000

Commit 8e34978

Browse files
committed
bug #38091 [DI] fix ContainerBuilder on PHP8 (nicolas-grekas)
This PR was merged into the 3.4 branch. Discussion ---------- [DI] fix ContainerBuilder on PHP8 | Q | A | ------------- | --- | Branch? | 3.4 | Bug fix? | yes | New feature? | no | Deprecations? | no | Tickets | Fix #38089 | License | MIT | Doc PR | - Commits ------- a3275a7 [DI] fix ContainerBuilder on PHP8
2 parents 0afa250 + a3275a7 commit 8e34978

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/DependencyInjection/ContainerBuilder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1173,7 +1173,7 @@ private function createService(Definition $definition, array &$inlineServices, $
11731173
} else {
11741174
$r = new \ReflectionClass($class = $parameterBag->resolveValue($definition->getClass()));
11751175

1176-
$service = null === $r->getConstructor() ? $r->newInstance() : $r->newInstanceArgs($arguments);
1176+
$service = null === $r->getConstructor() ? $r->newInstance() : $r->newInstanceArgs(array_values($arguments));
11771177
// don't trigger deprecations for internal uses
11781178
// @deprecated since version 3.3, to be removed in 4.0 along with the deprecated class
11791179
$deprecationAllowlist = ['event_dispatcher' => ContainerAwareEventDispatcher::class];

0 commit comments

Comments
 (0)
0