Skip to content

Commit

Permalink
Removed eval() from KernelShutdownOnTearDownTrait
Browse files Browse the repository at this point in the history
  • Loading branch information
skalpa committed Feb 24, 2019
1 parent 5b23a2b commit 324b70a
Showing 1 changed file with 0 additions and 4 deletions.
Expand Up @@ -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
*/
Expand All @@ -29,7 +26,6 @@ protected function tearDown(): void
static::ensureKernelShutdown();
}
}
');
} else {
/**
* @internal
Expand Down

0 comments on commit 324b70a

Please sign in to comment.