Skip to content

Commit c3d9114

Browse files
committed
[DI]: removed unnecessary checks on Definitions and Aliases
If it is "public", then for sure it is not "private". symfony/symfony#61505 (comment)
1 parent 1fd9c16 commit c3d9114

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Tests/DependencyInjection/FormPassTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ public function testAddTaggedTypes()
6161
$extDefinition = $container->getDefinition('form.extension');
6262

6363
$locator = $extDefinition->getArgument(0);
64-
$this->assertTrue(!$locator->isPublic() || $locator->isPrivate());
64+
$this->assertTrue($locator->isPrivate());
6565
$this->assertEquals(
6666
(new Definition(ServiceLocator::class, [[
6767
__CLASS__.'_Type1' => new ServiceClosureArgument(new Reference('my.type1')),

0 commit comments

Comments
 (0)