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 45fc42f commit b12901eCopy full SHA for b12901e
1 file changed
src/Results/Nodes/ParameterNode.php
@@ -22,7 +22,13 @@ class ParameterNode implements ResultNode
22
public function __construct(Node\Param $node)
23
{
24
$this->name = $node->var->name;
25
- $this->type = optional($node->type)->toString();
+
26
+ if ($node->type instanceof Node\NullableType) {
27
+ $this->type = $node->getType();
28
+ } else {
29
+ $this->type = optional($node->type)->toString();
30
+ }
31
32
$this->default = $node->default ? ExpressionTransformer::parserNodeToResultNode($node->default) : null;
33
$this->location = GenericCodeLocation::createFromNode($node);
34
}
0 commit comments