Fixed type of token object is now a property instead of array value in Field2

This commit is contained in:
Jan Böhmer 2024-06-09 23:55:12 +02:00
parent 0d445b6a21
commit bd640c19a4

View file

@ -50,7 +50,7 @@ class Field2 extends FunctionNode
$lexer = $parser->getLexer();
while (count($this->values) < 1 ||
$lexer->lookahead['type'] != TokenType::T_CLOSE_PARENTHESIS) {
$lexer->lookahead->type !== TokenType::T_CLOSE_PARENTHESIS) {
$parser->match(TokenType::T_COMMA);
$this->values[] = $parser->ArithmeticPrimary();
}