Skip to content

Commit

Permalink
Explicitly name the close token of list
Browse files Browse the repository at this point in the history
  • Loading branch information
kylekatarnls committed Aug 22, 2019
1 parent db81702 commit 3931f3c
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1700,7 +1700,8 @@ private function parseListExpression()
}
}

$this->consumeToken($shortSyntax ? Tokens::T_SQUARED_BRACKET_CLOSE : Tokens::T_PARENTHESIS_CLOSE);
$closeToken = $shortSyntax ? Tokens::T_SQUARED_BRACKET_CLOSE : Tokens::T_PARENTHESIS_CLOSE;
$this->consumeToken($closeToken);

return $this->setNodePositionsAndReturn($list);
}
Expand Down

0 comments on commit 3931f3c

Please sign in to comment.