Skip to content

Commit

Permalink
fix mixed return type with PHP 7.4
Browse files Browse the repository at this point in the history
  • Loading branch information
Art4 committed Oct 20, 2023
1 parent 3ce9d44 commit 901f121
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion tests/Unit/Input/RequestStringInputTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
4 changes: 3 additions & 1 deletion tests/Unit/Input/ResponseStringInputTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 901f121

Please sign in to comment.