Skip to content

Commit 756b526

Browse files
committed
only return the arguments context if we have arguments
1 parent c6881ab commit 756b526

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

app/Parsers/ObjectCreationExpressionParser.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,10 @@ public function parse(ObjectCreationExpression $node)
2323

2424
$this->context->autocompleting = $node->closeParen instanceof MissingToken;
2525

26+
if ($node->argumentExpressionList === null) {
27+
return $this->context;
28+
}
29+
2630
return $this->context->arguments;
2731
}
2832

0 commit comments

Comments
 (0)