From c92029e2cf508ec1a60a8edf691048a476e10621 Mon Sep 17 00:00:00 2001 From: Jon Ursenbach Date: Sun, 6 May 2018 19:13:01 -0400 Subject: [PATCH] Fixing some static analysis issues. --- src/Generator/Blueprint.php | 2 ++ tests/Parser/Annotations/ReturnAnnotationTest.php | 2 +- tests/Parser/Annotations/ThrowsAnnotationTest.php | 4 ++-- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/Generator/Blueprint.php b/src/Generator/Blueprint.php index 7fd8a4a..4cdafa3 100644 --- a/src/Generator/Blueprint.php +++ b/src/Generator/Blueprint.php @@ -26,6 +26,8 @@ class Blueprint extends Generator * Take compiled API documentation and generate API Blueprint representations. * * @psalm-suppress PossiblyFalseOperand + * @psalm-suppress InvalidScalarArgument + * @psalm-suppress PossiblyUndefinedVariable * @return array */ public function generate(): array diff --git a/tests/Parser/Annotations/ReturnAnnotationTest.php b/tests/Parser/Annotations/ReturnAnnotationTest.php index 6f56a5e..9012e88 100644 --- a/tests/Parser/Annotations/ReturnAnnotationTest.php +++ b/tests/Parser/Annotations/ReturnAnnotationTest.php @@ -29,7 +29,7 @@ public function testAnnotation(string $content, bool $visible, $version, array $ * @dataProvider providerAnnotation * @param string $content * @param bool $visible - * @param $version + * @param Version|null $version * @param array $expected */ public function testHydrate(string $content, bool $visible, $version, array $expected): void diff --git a/tests/Parser/Annotations/ThrowsAnnotationTest.php b/tests/Parser/Annotations/ThrowsAnnotationTest.php index 53f8c5b..03c67c6 100644 --- a/tests/Parser/Annotations/ThrowsAnnotationTest.php +++ b/tests/Parser/Annotations/ThrowsAnnotationTest.php @@ -15,7 +15,7 @@ class ThrowsAnnotationTest extends AnnotationTest /** * @dataProvider providerAnnotation * @param string $content - * @param $version + * @param Version|null $version * @param bool $visible * @param array $expected */ @@ -31,7 +31,7 @@ public function testAnnotation(string $content, $version, bool $visible, array $ /** * @dataProvider providerAnnotation * @param string $content - * @param $version + * @param Version|null $version * @param bool $visible * @param array $expected */