Skip to content

Commit e23e0dd

Browse files
committed
Fix psalm config move from psalm.xml to docBlock
1 parent eefccf8 commit e23e0dd

File tree

3 files changed

+13
-11
lines changed

3 files changed

+13
-11
lines changed

psalm.xml

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,4 @@
1212
<directory name="vendor" />
1313
</ignoreFiles>
1414
</projectFiles>
15-
16-
<issueHandlers>
17-
<InvalidReturnStatement errorLevel="info" />
18-
<InvalidReturnType errorLevel="info" />
19-
<MixedArgument errorLevel="info" />
20-
<MixedAssignment errorLevel="info" />
21-
<MixedArgumentTypeCoercion errorLevel="info" />
22-
<PossiblyNullArgument errorLevel="info" />
23-
</issueHandlers>
2415
</psalm>

src/SapiNormalizer.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,8 @@ public function normalizeProtocolVersion(array $server): string
4646

4747
/**
4848
* {@inheritDoc}
49+
*
50+
* @psalm-suppress MixedAssignment
4951
*/
5052
public function normalizeUri(array $server): UriInterface
5153
{
@@ -80,6 +82,8 @@ public function normalizeUri(array $server): UriInterface
8082

8183
/**
8284
* {@inheritDoc}
85+
*
86+
* @psalm-suppress MixedAssignment
8387
*/
8488
public function normalizeHeaders(array $server): array
8589
{

src/UploadedFileCreator.php

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ public static function create(
5656
* @param array $file
5757
* @return UploadedFileInterface
5858
* @throws InvalidArgumentException
59+
* @psalm-suppress MixedArgument
5960
*/
6061
public static function createFromArray(array $file): UploadedFileInterface
6162
{
@@ -87,8 +88,9 @@ public static function createFromArray(array $file): UploadedFileInterface
8788
* @see https://www.php.net/manual/reserved.variables.files.php
8889
*
8990
* @param array $files
90-
* @return UploadedFileInterface[]|array[][]
91+
* @return UploadedFileInterface[]|array[]
9192
* @throws InvalidArgumentException
93+
* @psalm-suppress MixedAssignment
9294
*/
9395
public static function createFromGlobals(array $files = []): array
9496
{
@@ -130,6 +132,8 @@ public static function createFromGlobals(array $files = []): array
130132
* @param array $files
131133
* @return UploadedFileInterface[]
132134
* @throws InvalidArgumentException
135+
* @psalm-suppress MixedArgument
136+
* @psalm-suppress MixedArgumentTypeCoercion
133137
*/
134138
private static function createMultipleUploadedFiles(array $files): array
135139
{
@@ -163,7 +167,10 @@ private static function createMultipleUploadedFiles(array $files): array
163167
* @param int[]|array[] $errors
164168
* @param string[]|array[]|null $names
165169
* @param string[]|array[]|null $types
166-
* @return UploadedFileInterface[]|array[]
170+
* @return UploadedFileInterface[]
171+
* @psalm-suppress InvalidReturnType
172+
* @psalm-suppress InvalidReturnStatement
173+
* @psalm-suppress MixedArgumentTypeCoercion
167174
*/
168175
private static function buildTree(array $tmpNames, array $sizes, array $errors, ?array $names, ?array $types): array
169176
{

0 commit comments

Comments
 (0)