Skip to content

Commit c7c9fca

Browse files
committed
CS Fixes: Not double split with one array argument
1 parent b719221 commit c7c9fca

File tree

1 file changed

+8
-10
lines changed

1 file changed

+8
-10
lines changed

Tests/Compiler/ResolveNamedArgumentsPassTest.php

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -180,16 +180,14 @@ public function testVariadics()
180180
$container = new ContainerBuilder();
181181

182182
$definition = $container->register(NamedArgumentsVariadicsDummy::class, NamedArgumentsVariadicsDummy::class);
183-
$definition->setArguments(
184-
[
185-
'$class' => new \stdClass(),
186-
'$variadics' => [
187-
new Reference('foo'),
188-
new Reference('bar'),
189-
new Reference('baz'),
190-
],
191-
]
192-
);
183+
$definition->setArguments([
184+
'$class' => new \stdClass(),
185+
'$variadics' => [
186+
new Reference('foo'),
187+
new Reference('bar'),
188+
new Reference('baz'),
189+
],
190+
]);
193191

194192
$pass = new ResolveNamedArgumentsPass();
195193
$pass->process($container);

0 commit comments

Comments
 (0)