diff --git a/Test/KernelShutdownOnTearDownTrait.php b/Test/KernelShutdownOnTearDownTrait.php index 7eb4d0726..b01dbb049 100644 --- a/Test/KernelShutdownOnTearDownTrait.php +++ b/Test/KernelShutdownOnTearDownTrait.php @@ -16,7 +16,9 @@ // Auto-adapt to PHPUnit 8 that added a `void` return-type to the tearDown method if (method_exists(\ReflectionMethod::class, 'hasReturnType') && (new \ReflectionMethod(TestCase::class, 'tearDown'))->hasReturnType()) { -eval(' + eval(' + namespace Symfony\Bundle\FrameworkBundle\Test; + /** * @internal */