Skip to content

Commit 4e19d7d

Browse files
committed
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
2 parents 7439915 + 50b98a8 commit 4e19d7d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Test/KernelShutdownOnTearDownTrait.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,9 @@
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('
19+
eval('
20+
namespace Symfony\Bundle\FrameworkBundle\Test;
21+
2022
/**
2123
* @internal
2224
*/

0 commit comments

Comments
 (0)