From 51a9bf6f5612a8a19f1e1e03385bd03cea62c7b1 Mon Sep 17 00:00:00 2001 From: Ondrej Mirtes Date: Thu, 21 Nov 2019 21:52:51 +0100 Subject: [PATCH] More understandable parser error message --- src/Lexer/Lexer.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Lexer/Lexer.php b/src/Lexer/Lexer.php index 69387fe..36cd196 100644 --- a/src/Lexer/Lexer.php +++ b/src/Lexer/Lexer.php @@ -68,9 +68,9 @@ class Lexer self::TOKEN_INTEGER => 'TOKEN_INTEGER', self::TOKEN_SINGLE_QUOTED_STRING => 'TOKEN_SINGLE_QUOTED_STRING', self::TOKEN_DOUBLE_QUOTED_STRING => 'TOKEN_DOUBLE_QUOTED_STRING', - self::TOKEN_IDENTIFIER => 'TOKEN_IDENTIFIER', + self::TOKEN_IDENTIFIER => 'type', self::TOKEN_THIS_VARIABLE => '\'$this\'', - self::TOKEN_VARIABLE => 'TOKEN_VARIABLE', + self::TOKEN_VARIABLE => 'variable', self::TOKEN_HORIZONTAL_WS => 'TOKEN_HORIZONTAL_WS', self::TOKEN_OTHER => 'TOKEN_OTHER', self::TOKEN_END => 'TOKEN_END',