Skip to content

Commit e691a0c

Browse files
authored
Merge pull request #10 from jakzal/called-class-container
Use the called class name instead to support test case inhertiance
2 parents 8da2be8 + f1ced82 commit e691a0c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/TestCase/SymfonyContainer.php

+1-1
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)