Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 1dc3e34

Browse files
nicolas-grekasJules Pietri
authored and
Jules Pietri
committed
fix merge
1 parent bed7694 commit 1dc3e34

File tree

3 files changed

+3
-11
lines changed

3 files changed

+3
-11
lines changed

src/Symfony/Bundle/FrameworkBundle/Test/KernelShutdownOnTearDownTrait.php

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

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

18-
if (method_exists(\ReflectionMethod::class, 'hasReturnType') && (new \ReflectionMethod(TestCase::class, 'tearDown'))->hasReturnType()) {
18+
if ((new \ReflectionMethod(TestCase::class, 'tearDown'))->hasReturnType()) {
1919
/**
2020
* @internal
2121
*/

src/Symfony/Component/Form/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\Form\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

src/Symfony/Component/Validator/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)