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 dfad4ab commit 9050b32Copy full SHA for 9050b32
resources/grammar.php
@@ -343,7 +343,7 @@
343
return new Node\Stmt\CallableTypeNode(
344
name: $name,
345
parameters: $parameters,
346
- type: isset($children[0]) ? $children[0] : null,
+ type: $children[0] ?? null,
347
);
348
},
349
61 => static function (\Phplrt\Parser\Context $ctx, $children) {
resources/grammar/callable.pp2
@@ -13,7 +13,7 @@ CallableType -> {
13
14
15
16
17
18
}
19
: Name()
0 commit comments