Skip to content

Commit 5022785

Browse files
committed
Removed eval() from KernelShutdownOnTearDownTrait
1 parent 37c194a commit 5022785

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

Test/KernelShutdownOnTearDownTrait.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,6 @@
1616
// Auto-adapt to PHPUnit 8 that added a `void` return-type to the tearDown method
1717

1818
if (method_exists(\ReflectionMethod::class, 'hasReturnType') && (new \ReflectionMethod(TestCase::class, 'tearDown'))->hasReturnType()) {
19-
eval('
20-
namespace Symfony\Bundle\FrameworkBundle\Test;
21-
2219
/**
2320
* @internal
2421
*/
@@ -29,7 +26,6 @@ protected function tearDown(): void
2926
static::ensureKernelShutdown();
3027
}
3128
}
32-
');
3329
} else {
3430
/**
3531
* @internal

0 commit comments

Comments
 (0)