Skip to content

Commit f8f1127

Browse files
Remove unneeded calls to setPublic(false)
1 parent e3042b6 commit f8f1127

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Tests/DependencyInjection/FormPassTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,8 @@ public function testAddTaggedTypes()
6464
(new Definition(ServiceLocator::class, [[
6565
__CLASS__.'_Type1' => new ServiceClosureArgument(new Reference('my.type1')),
6666
__CLASS__.'_Type2' => new ServiceClosureArgument(new Reference('my.type2')),
67-
]]))->addTag('container.service_locator')->setPublic(false),
68-
$locator->setPublic(false)
67+
]]))->addTag('container.service_locator'),
68+
$locator
6969
);
7070
}
7171

0 commit comments

Comments
 (0)