Skip to content

Commit 72b166a

Browse files
Merge branch '4.2'
* 4.2: fix merge
2 parents 90c135d + 8d5c1ce commit 72b166a

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

Test/TestCaseSetUpTearDownTrait.php

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,7 @@
1515

1616
// Auto-adapt to PHPUnit 8 that added a `void` return-type to the setUp/tearDown methods
1717

18-
if (method_exists(\ReflectionMethod::class, 'hasReturnType') && (new \ReflectionMethod(TestCase::class, 'tearDown'))->hasReturnType()) {
19-
eval('
20-
namespace Symfony\Component\Validator\Test;
21-
18+
if ((new \ReflectionMethod(TestCase::class, 'tearDown'))->hasReturnType()) {
2219
/**
2320
* @internal
2421
*/
@@ -42,7 +39,6 @@ protected function tearDown(): void
4239
$this->doTearDown();
4340
}
4441
}
45-
');
4642
} else {
4743
/**
4844
* @internal

0 commit comments

Comments
 (0)