We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9bd027c commit 0ea1d4bCopy full SHA for 0ea1d4b
tests/PHPStan/Analyser/data/bug-8072.php
@@ -8,13 +8,13 @@ function say(\Closure $bar): string
8
}
9
10
function (): void {
11
- echo say(fn (string $name = null) => 'Hi');
12
- echo say((fn (string $name = null) => 'Hi')(...));
+ echo say(fn (?string $name = null) => 'Hi');
+ echo say((fn (?string $name = null) => 'Hi')(...));
13
14
- echo say(function (string $name = null) {
+ echo say(function (?string $name = null) {
15
return 'Hi';
16
});
17
- echo say((function (string $name = null) {
+ echo say((function (?string $name = null) {
18
19
})(...));
20
};
0 commit comments