From 50b98a8bd749a4fb7f6e95d8a636450e030111f5 Mon Sep 17 00:00:00 2001 From: Ilya Bulakh Date: Thu, 14 Feb 2019 17:37:06 +0300 Subject: [PATCH] fix lost namespace in eval --- Test/KernelShutdownOnTearDownTrait.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Test/KernelShutdownOnTearDownTrait.php b/Test/KernelShutdownOnTearDownTrait.php index 7eb4d0726..b01dbb049 100644 --- a/Test/KernelShutdownOnTearDownTrait.php +++ b/Test/KernelShutdownOnTearDownTrait.php @@ -16,7 +16,9 @@ // 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 */