Skip to content

Commit

Permalink
Updated Psalm (#239)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
davidbyoung committed Dec 23, 2022
1 parent a5c0ea0 commit 39fdc98
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/Psr7/Psr7FactoryTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,7 @@ public function testCreatePsr7RequestForMultipartRequestWithoutNameDefaultsToUsi
/** @var list<UploadedFileInterface> $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());
Expand Down

0 comments on commit 39fdc98

Please sign in to comment.