From 901f1217dd131351ed4788560be3a24c577c73b2 Mon Sep 17 00:00:00 2001 From: Art4 Date: Fri, 20 Oct 2023 15:06:22 +0200 Subject: [PATCH] fix mixed return type with PHP 7.4 --- tests/Unit/Input/RequestStringInputTest.php | 4 +++- tests/Unit/Input/ResponseStringInputTest.php | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/tests/Unit/Input/RequestStringInputTest.php b/tests/Unit/Input/RequestStringInputTest.php index 665d562..f9d49e7 100644 --- a/tests/Unit/Input/RequestStringInputTest.php +++ b/tests/Unit/Input/RequestStringInputTest.php @@ -26,8 +26,10 @@ public function testGetAsObjectFromStringReturnsObject(): void /** * @dataProvider jsonValuesProviderWithoutString + * + * @param mixed $input */ - public function testCreateWithoutStringThrowsException(mixed $input): void + public function testCreateWithoutStringThrowsException($input): void { $this->expectException(InputException::class); $this->expectExceptionMessage( diff --git a/tests/Unit/Input/ResponseStringInputTest.php b/tests/Unit/Input/ResponseStringInputTest.php index d7e0755..8b6f24c 100644 --- a/tests/Unit/Input/ResponseStringInputTest.php +++ b/tests/Unit/Input/ResponseStringInputTest.php @@ -26,8 +26,10 @@ public function testGetAsObjectFromStringReturnsObject(): void /** * @dataProvider jsonValuesProviderWithoutString + * + * @param mixed $input */ - public function testCreateWithoutStringThrowsException(mixed $input): void + public function testCreateWithoutStringThrowsException($input): void { $this->expectException(InputException::class); $this->expectExceptionMessage(