mirror of
https://github.com/barryvdh/ReflectionDocBlock.git
synced 2026-08-18 01:57:13 +00:00
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:
@@ -41,5 +41,17 @@
|
|||||||
<directory name="src/DocBlock/Tags/"/>
|
<directory name="src/DocBlock/Tags/"/>
|
||||||
</errorLevel>
|
</errorLevel>
|
||||||
</RedundantConditionGivenDocblockType>
|
</RedundantConditionGivenDocblockType>
|
||||||
|
|
||||||
|
<InvalidReturnType>
|
||||||
|
<errorLevel type="info">
|
||||||
|
<file name="src/Utils.php"/>
|
||||||
|
</errorLevel>
|
||||||
|
</InvalidReturnType>
|
||||||
|
|
||||||
|
<InvalidReturnStatement>
|
||||||
|
<errorLevel type="info">
|
||||||
|
<file name="src/Utils.php"/>
|
||||||
|
</errorLevel>
|
||||||
|
</InvalidReturnStatement>
|
||||||
</issueHandlers>
|
</issueHandlers>
|
||||||
</psalm>
|
</psalm>
|
||||||
|
|||||||
Reference in New Issue
Block a user