Skip to content

Commit f1ced82

Browse files
committed
Use the called class name instead to support test case inhertiance
1 parent 8da2be8 commit f1ced82

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/TestCase/SymfonyContainer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,6 @@ trait SymfonyContainer
1616

1717
public function createContainer(): ContainerInterface
1818
{
19-
return static::bootKernel()->getContainer()->get(__CLASS__);
19+
return static::bootKernel()->getContainer()->get(\get_called_class());
2020
}
2121
}

0 commit comments

Comments
 (0)