Skip to content

Commit 9a8d5cf

Browse files
staabmsebastianbergmann
authored andcommitted
cleanup types
1 parent 7e9475d commit 9a8d5cf

File tree

2 files changed

+2
-9
lines changed

2 files changed

+2
-9
lines changed

.psalm/baseline.xml

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -640,13 +640,6 @@
640640
</RedundantCondition>
641641
</file>
642642
<file src="src/Metadata/Api/Groups.php">
643-
<LessSpecificReturnStatement>
644-
<code><![CDATA[array_unique($groups)]]></code>
645-
<code><![CDATA[array_unique($groups)]]></code>
646-
</LessSpecificReturnStatement>
647-
<MoreSpecificReturnType>
648-
<code><![CDATA[list<string>]]></code>
649-
</MoreSpecificReturnType>
650643
<RedundantCondition>
651644
<code><![CDATA[$metadata instanceof CoversFunction]]></code>
652645
<code><![CDATA[$metadata instanceof UsesFunction]]></code>

src/Metadata/Api/Groups.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,15 +31,15 @@
3131
final class Groups
3232
{
3333
/**
34-
* @var array<string, list<string>>
34+
* @var array<string, array<string>>
3535
*/
3636
private static array $groupCache = [];
3737

3838
/**
3939
* @psalm-param class-string $className
4040
* @psalm-param non-empty-string $methodName
4141
*
42-
* @psalm-return list<string>
42+
* @psalm-return array<string>
4343
*/
4444
public function groups(string $className, string $methodName, bool $includeVirtual = true): array
4545
{

0 commit comments

Comments
 (0)