1
0
mirror of synced 2025-03-06 04:46:13 +03:00

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?
This commit is contained in:
Frédéric Hardy 2015-06-08 16:04:58 +02:00
parent 900b55d16a
commit b6d29c8b72

View File

@ -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);