From efd858a94c9c3f0a63657d8ff9831ae734fc44f8 Mon Sep 17 00:00:00 2001 From: simivar Date: Sat, 24 Oct 2020 00:34:04 +0200 Subject: [PATCH] PHPStan & PHP CS Fixer --- tests/APITestCase.php | 2 -- tests/Unit/API/ResponseDecoderTest.php | 15 +++++++++++++++ 2 files changed, 15 insertions(+), 2 deletions(-) diff --git a/tests/APITestCase.php b/tests/APITestCase.php index 0dec68a..890fbda 100644 --- a/tests/APITestCase.php +++ b/tests/APITestCase.php @@ -5,8 +5,6 @@ namespace Riot\Tests; use PHPUnit\Framework\TestCase; -use Psr\Http\Message\ResponseInterface; -use Psr\Http\Message\StreamInterface; use Riot\API\ResponseDecoderInterface; use Riot\ConnectionInterface; diff --git a/tests/Unit/API/ResponseDecoderTest.php b/tests/Unit/API/ResponseDecoderTest.php index 647af52..b49ad9a 100644 --- a/tests/Unit/API/ResponseDecoderTest.php +++ b/tests/Unit/API/ResponseDecoderTest.php @@ -34,6 +34,8 @@ public function testGetBodyContentsDecodedAsArrayProperlyDecodesData(): void /** * @dataProvider provideNonArrayValues + * + * @param mixed $value */ public function testGetBodyContentsDecodedAsArrayThrowsExceptionOnNonArray($value): void { @@ -76,6 +78,8 @@ public function testGetBodyContentsDecodedAsIntProperlyDecodesData(): void /** * @dataProvider provideNonIntValues + * + * @param mixed $value */ public function testGetBodyContentsDecodedAsIntThrowsExceptionOnNonInt($value): void { @@ -118,6 +122,8 @@ public function testGetBodyContentsDecodedAsStringProperlyDecodesData(): void /** * @dataProvider provideNonStringValues + * + * @param mixed $value */ public function testGetBodyContentsDecodedAsStringThrowsErrorOnNonString($value): void { @@ -139,6 +145,9 @@ public function testGetBodyContentsDecodedAsStringThrowsErrorOnNonString($value) $decoder->getBodyContentsDecodedAsString(); } + /** + * @return string[][] + */ public function provideNonStringValues(): array { return [ @@ -149,6 +158,9 @@ public function provideNonStringValues(): array ]; } + /** + * @return string[][] + */ public function provideNonIntValues(): array { return [ @@ -159,6 +171,9 @@ public function provideNonIntValues(): array ]; } + /** + * @return string[][] + */ public function provideNonArrayValues(): array { return [