Skip to content

Commit 3bdbd25

Browse files
Fix
1 parent 8ff0adb commit 3bdbd25

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

tests/PHPStan/Rules/Variables/data/bug-doctrine.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,11 @@
44

55
class HelloWorld
66
{
7-
public function sayHello(string|array $a, array $b): void
7+
/**
8+
* @param string|array $a
9+
* @param array $b
10+
*/
11+
public function sayHello($a, $b): void
812
{
913
$b[$a] ?? 2;
1014
}

0 commit comments

Comments
 (0)