From da325fc0e2b8348f839ed497384cabce39aa6e01 Mon Sep 17 00:00:00 2001 From: Fabien Potencier Date: Sat, 16 Feb 2019 12:54:38 +0100 Subject: [PATCH] bug #30245 fix lost namespace in eval (fizzka) This PR was squashed before being merged into the 4.2 branch (closes #30245). Discussion ---------- fix lost namespace in eval Bugfix: phpunit8 tearDown() declaration Commits ------- 8743a1ada8 fix lost namespace in eval --- .../FrameworkBundle/Test/KernelShutdownOnTearDownTrait.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Symfony/Bundle/FrameworkBundle/Test/KernelShutdownOnTearDownTrait.php b/src/Symfony/Bundle/FrameworkBundle/Test/KernelShutdownOnTearDownTrait.php index 7eb4d0726e..b01dbb0494 100644 --- a/src/Symfony/Bundle/FrameworkBundle/Test/KernelShutdownOnTearDownTrait.php +++ b/src/Symfony/Bundle/FrameworkBundle/Test/KernelShutdownOnTearDownTrait.php @@ -16,7 +16,9 @@ use PHPUnit\Framework\TestCase; // 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 */