Skip to content

Commit

Permalink
x
Browse files Browse the repository at this point in the history
  • Loading branch information
dg committed Jun 18, 2024
1 parent 4c90128 commit c7bac22
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Neon/Parser.php
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ private function checkArrayKey(Node $key, array &$arr): void
}


private function injectPos(Node $node, int $start = null, int $end = null): Node
private function injectPos(Node $node, ?int $start = null, ?int $end = null): Node
{
$node->startTokenPos = $start ?? $this->tokens->getPos();
$node->startLine = $this->posToLine[$node->startTokenPos];
Expand Down

0 comments on commit c7bac22

Please sign in to comment.