Merge branch '4.2'

* 4.2:
  fix merge
This commit is contained in:
Nicolas Grekas 2019-03-10 11:16:53 +01:00
commit 6fd6b94628
3 changed files with 3 additions and 11 deletions

View File

@ -15,7 +15,7 @@ use PHPUnit\Framework\TestCase;
// Auto-adapt to PHPUnit 8 that added a `void` return-type to the tearDown method // 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()) { if ((new \ReflectionMethod(TestCase::class, 'tearDown'))->hasReturnType()) {
/** /**
* @internal * @internal
*/ */

View File

@ -15,10 +15,7 @@ use PHPUnit\Framework\TestCase;
// Auto-adapt to PHPUnit 8 that added a `void` return-type to the setUp/tearDown methods // Auto-adapt to PHPUnit 8 that added a `void` return-type to the setUp/tearDown methods
if (method_exists(\ReflectionMethod::class, 'hasReturnType') && (new \ReflectionMethod(TestCase::class, 'tearDown'))->hasReturnType()) { if ((new \ReflectionMethod(TestCase::class, 'tearDown'))->hasReturnType()) {
eval('
namespace Symfony\Component\Form\Test;
/** /**
* @internal * @internal
*/ */
@ -42,7 +39,6 @@ if (method_exists(\ReflectionMethod::class, 'hasReturnType') && (new \Reflection
$this->doTearDown(); $this->doTearDown();
} }
} }
');
} else { } else {
/** /**
* @internal * @internal

View File

@ -15,10 +15,7 @@ use PHPUnit\Framework\TestCase;
// Auto-adapt to PHPUnit 8 that added a `void` return-type to the setUp/tearDown methods // Auto-adapt to PHPUnit 8 that added a `void` return-type to the setUp/tearDown methods
if (method_exists(\ReflectionMethod::class, 'hasReturnType') && (new \ReflectionMethod(TestCase::class, 'tearDown'))->hasReturnType()) { if ((new \ReflectionMethod(TestCase::class, 'tearDown'))->hasReturnType()) {
eval('
namespace Symfony\Component\Validator\Test;
/** /**
* @internal * @internal
*/ */
@ -42,7 +39,6 @@ if (method_exists(\ReflectionMethod::class, 'hasReturnType') && (new \Reflection
$this->doTearDown(); $this->doTearDown();
} }
} }
');
} else { } else {
/** /**
* @internal * @internal