Skip to content

Commit c2e16da

Browse files
Fix PHP 7.4 test (#6426)
1 parent 6457e6d commit c2e16da

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎tests/PHPStan/Rules/Arrays/data/bug-7905.php‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ class HelloWorld
99
/**
1010
* @param array<string, string> $data
1111
*/
12-
public function sayHello(array|null $data): void
12+
public function sayHello(?array $data): void
1313
{
1414
$key = $data === null ? null : array_key_first($data);
1515
echo $key === null ? null : $data[$key];

0 commit comments

Comments
 (0)