From 39fdc98c5b85749104711744250c63048cd16c2b Mon Sep 17 00:00:00 2001 From: David Young Date: Fri, 23 Dec 2022 15:16:22 -0600 Subject: [PATCH] Updated Psalm (#239) * Fixed some Psalm errors * Re-enabled Psalm during CI * Updated to use local CI template for Aphiria * Suppressed buggy Psalm errors * Nearly done fixing Psalm bugs * Fixed remaining Psalm issues * More Psalm fixes, fixed param type of validation constraints * Suppressed buggy Psalm errors --- tests/Psr7/Psr7FactoryTest.php | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/Psr7/Psr7FactoryTest.php b/tests/Psr7/Psr7FactoryTest.php index 1c72045..a9dddc1 100644 --- a/tests/Psr7/Psr7FactoryTest.php +++ b/tests/Psr7/Psr7FactoryTest.php @@ -238,6 +238,7 @@ public function testCreatePsr7RequestForMultipartRequestWithoutNameDefaultsToUsi /** @var list $psr7UploadedFiles */ $psr7UploadedFiles = $psr7Request->getUploadedFiles(); $this->assertCount(1, $psr7UploadedFiles); + /** @psalm-suppress PossiblyUndefinedArrayOffset assertCount() above confirms that this index exists - bug */ $this->assertSame('filecontents', (string)$psr7UploadedFiles['0']->getStream()); $this->assertSame('foo.png', $psr7UploadedFiles['0']->getClientFilename()); $this->assertSame('image/png', $psr7UploadedFiles['0']->getClientMediaType());