diff --git a/tests/ContainerTrait.php b/tests/ContainerTrait.php index 078e5ebb8e..f7c44af44b 100644 --- a/tests/ContainerTrait.php +++ b/tests/ContainerTrait.php @@ -67,7 +67,7 @@ private function compileContainer(): void private function attachContainerToContainerFactory(): void { if (!$this->container->isCompiled()) { - $this->container->compile(); + $this->compileContainer(); } $reflectionClass = new ReflectionClass(ContainerFactory::getInstance()); $reflectionProperty = $reflectionClass->getProperty('symfonyContainer');