From b6d29c8b721a356025270b478fd5ab738dc05b5b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Hardy?= Date: Mon, 8 Jun 2015 16:04:58 +0200 Subject: [PATCH] Remove (useless?) call to parser::getLexer() The `$lexer` variable is not used, the method `parser::getLexer()` is just a dumb getter and do nothing, so in my opinion, the call to `parser::getLexer()` is useless in this context. Can you confirm? --- docs/en/reference/dql-doctrine-query-language.rst | 2 -- 1 file changed, 2 deletions(-) diff --git a/docs/en/reference/dql-doctrine-query-language.rst b/docs/en/reference/dql-doctrine-query-language.rst index ea5f60deb..ea902cb6b 100644 --- a/docs/en/reference/dql-doctrine-query-language.rst +++ b/docs/en/reference/dql-doctrine-query-language.rst @@ -719,8 +719,6 @@ classes have to implement the base class : public function parse(\Doctrine\ORM\Query\Parser $parser) { - $lexer = $parser->getLexer(); - $parser->match(Lexer::T_IDENTIFIER); $parser->match(Lexer::T_OPEN_PARENTHESIS);