diff --git a/lib/Doctrine/ORM/Query/Parser.php b/lib/Doctrine/ORM/Query/Parser.php index 771c157657c..318c21e9a19 100644 --- a/lib/Doctrine/ORM/Query/Parser.php +++ b/lib/Doctrine/ORM/Query/Parser.php @@ -582,7 +582,7 @@ private function isNextAllAnySome(): bool assert($this->lexer->lookahead !== null); return in_array( - $this->lexer->lookahead['type'], + $this->lexer->lookahead->type, [Lexer::T_ALL, Lexer::T_ANY, Lexer::T_SOME], true ); @@ -978,7 +978,7 @@ public function AbstractSchemaName() $this->match(Lexer::T_IDENTIFIER); assert($this->lexer->token !== null); - return $this->lexer->token['value']; + return $this->lexer->token->value; } $this->match(Lexer::T_ALIASED_NAME); @@ -989,10 +989,10 @@ public function AbstractSchemaName() 'doctrine/orm', 'https://github.com/doctrine/orm/issues/8818', 'Short namespace aliases such as "%s" are deprecated and will be removed in Doctrine ORM 3.0.', - $this->lexer->token['value'] + $this->lexer->token->value ); - [$namespaceAlias, $simpleClassName] = explode(':', $this->lexer->token['value']); + [$namespaceAlias, $simpleClassName] = explode(':', $this->lexer->token->value); return $this->em->getConfiguration()->getEntityNamespace($namespaceAlias) . '\\' . $simpleClassName; }