From 324b70afa31779ff5e6488a139dc57e67e77a093 Mon Sep 17 00:00:00 2001 From: Pascal Luna Date: Sun, 24 Feb 2019 02:12:10 +0000 Subject: [PATCH] Removed eval() from KernelShutdownOnTearDownTrait --- .../FrameworkBundle/Test/KernelShutdownOnTearDownTrait.php | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/Symfony/Bundle/FrameworkBundle/Test/KernelShutdownOnTearDownTrait.php b/src/Symfony/Bundle/FrameworkBundle/Test/KernelShutdownOnTearDownTrait.php index b01dbb049434..217c2ae4576b 100644 --- a/src/Symfony/Bundle/FrameworkBundle/Test/KernelShutdownOnTearDownTrait.php +++ b/src/Symfony/Bundle/FrameworkBundle/Test/KernelShutdownOnTearDownTrait.php @@ -16,9 +16,6 @@ // 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(' - namespace Symfony\Bundle\FrameworkBundle\Test; - /** * @internal */ @@ -29,7 +26,6 @@ protected function tearDown(): void static::ensureKernelShutdown(); } } -'); } else { /** * @internal