From 77d2dfcbdefc653a9e616beb5d8b5e42b0d19521 Mon Sep 17 00:00:00 2001 From: Francesco Abeni Date: Thu, 24 Oct 2024 13:06:58 +0200 Subject: [PATCH] Add doctrine/lexer v3 compatibility Using the token as Token object is compatible with both v2 and v3 of doctrine/lexer --- src/Doctrine/Query/Cast.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Doctrine/Query/Cast.php b/src/Doctrine/Query/Cast.php index e8c34baa0..f0e72ac09 100644 --- a/src/Doctrine/Query/Cast.php +++ b/src/Doctrine/Query/Cast.php @@ -52,7 +52,7 @@ public function parse(Parser $parser): void $this->first = $parser->ArithmeticPrimary(); $parser->match(Lexer::T_AS); $parser->match(Lexer::T_IDENTIFIER); - $this->second = $parser->getLexer()->token['value']; + $this->second = $parser->getLexer()->token->value; $parser->match(Lexer::T_CLOSE_PARENTHESIS); } }