Skip to content

Commit b7f9b17

Browse files
jrfnljaapio
authored andcommitted
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.
1 parent 7172d13 commit b7f9b17

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

psalm.xml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,5 +41,17 @@
4141
<directory name="src/DocBlock/Tags/"/>
4242
</errorLevel>
4343
</RedundantConditionGivenDocblockType>
44+
45+
<InvalidReturnType>
46+
<errorLevel type="info">
47+
<file name="src/Utils.php"/>
48+
</errorLevel>
49+
</InvalidReturnType>
50+
51+
<InvalidReturnStatement>
52+
<errorLevel type="info">
53+
<file name="src/Utils.php"/>
54+
</errorLevel>
55+
</InvalidReturnStatement>
4456
</issueHandlers>
4557
</psalm>

0 commit comments

Comments
 (0)