Psalm: suppress two notices

The current version of Psalm flags the following issues:
```
ERROR: InvalidReturnType - src\Utils.php:44:16 - The declared return type 'array<array-key, string>' for phpDocumentor\Reflection\Utils::pregSplit is incorrect, got 'list<list<int|string>|string>' (see https://psalm.dev/011)
     * @return string[] Returns an array containing substrings of subject split along boundaries matched by pattern

ERROR: InvalidReturnStatement - src\Utils.php:55:16 - The inferred type 'list<list<int|string>|string>' does not match the declared return type 'array<array-key, string>' for phpDocumentor\Reflection\Utils::pregSplit (see https://psalm.dev/128)
        return $parts;
```

I'm suggest ignoring this as `list` isn't an officially supported type.
This commit is contained in:
jrfnl
2021-08-08 21:32:56 +02:00
committed by Jaapio
parent 7172d132a3
commit b7f9b17881
+12
View File
@@ -41,5 +41,17 @@
<directory name="src/DocBlock/Tags/"/>
</errorLevel>
</RedundantConditionGivenDocblockType>
<InvalidReturnType>
<errorLevel type="info">
<file name="src/Utils.php"/>
</errorLevel>
</InvalidReturnType>
<InvalidReturnStatement>
<errorLevel type="info">
<file name="src/Utils.php"/>
</errorLevel>
</InvalidReturnStatement>
</issueHandlers>
</psalm>