From 87822e94dd26c35dad1b5a82614b8d6273bf7885 Mon Sep 17 00:00:00 2001 From: Eugene Polozov Date: Mon, 21 Dec 2020 17:57:59 +0300 Subject: [PATCH] Fix declaration of TestCase --- src/Test/TestCase.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Test/TestCase.php b/src/Test/TestCase.php index 43e6b2a..077658e 100644 --- a/src/Test/TestCase.php +++ b/src/Test/TestCase.php @@ -8,7 +8,7 @@ if (!class_exists('\PHPUnit\Framework\TestCase')) { abstract class TestCase extends \PHPUnit\Framework\TestCase { - public function createMock(string $originalClassName): \PHPUnit\Framework\MockObject\MockObject + public function createMock(string $originalClassName) { if (method_exists(\PHPUnit\Framework\TestCase::class, 'createMock')) { return parent::createMock($originalClassName); @@ -40,7 +40,7 @@ if (!class_exists('\PHPUnit\Framework\TestCase')) { abstract class TestCase extends \PHPUnit\Framework\TestCase { - public function createMock(string $originalClassName): \PHPUnit\Framework\MockObject\MockObject + public function createMock(string $originalClassName) { if (method_exists(\PHPUnit\Framework\TestCase::class, 'createMock')) { return parent::createMock($originalClassName);