Skip to content

Commit 0ea1d4b

Browse files
committed
Fix tests
1 parent 9bd027c commit 0ea1d4b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tests/PHPStan/Analyser/data/bug-8072.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,13 @@ function say(\Closure $bar): string
88
}
99

1010
function (): void {
11-
echo say(fn (string $name = null) => 'Hi');
12-
echo say((fn (string $name = null) => 'Hi')(...));
11+
echo say(fn (?string $name = null) => 'Hi');
12+
echo say((fn (?string $name = null) => 'Hi')(...));
1313

14-
echo say(function (string $name = null) {
14+
echo say(function (?string $name = null) {
1515
return 'Hi';
1616
});
17-
echo say((function (string $name = null) {
17+
echo say((function (?string $name = null) {
1818
return 'Hi';
1919
})(...));
2020
};

0 commit comments

Comments
 (0)