Skip to content

Commit c269e1b

Browse files
jrfnljaapio
authored andcommitted
Psalm: remove suppression of return type issue
... and fix it instead.
1 parent 93198fa commit c269e1b

File tree

2 files changed

+2
-13
lines changed

2 files changed

+2
-13
lines changed

psalm.xml

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -42,18 +42,6 @@
4242
</errorLevel>
4343
</RedundantConditionGivenDocblockType>
4444

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>
56-
5745
<ArgumentTypeCoercion>
5846
<errorLevel type="info">
5947
<!-- PHP handles invalid preg_split flags just fine. -->

src/Utils.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,8 @@ abstract class Utils
4242
* Note that this changes the return value in an array where every element is an array consisting of the
4343
* matched string at offset 0 and its string offset into subject at offset 1.
4444
*
45-
* @return string[] Returns an array containing substrings of subject split along boundaries matched by pattern
45+
* @return array<int|string, array<int|string, string>> Returns an array containing substrings of subject
46+
* split along boundaries matched by pattern
4647
*
4748
* @throws PcreException
4849
*/

0 commit comments

Comments
 (0)