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:
parent
900b55d16a
commit
b6d29c8b72
@ -719,8 +719,6 @@ classes have to implement the base class :
|
|||||||
|
|
||||||
public function parse(\Doctrine\ORM\Query\Parser $parser)
|
public function parse(\Doctrine\ORM\Query\Parser $parser)
|
||||||
{
|
{
|
||||||
$lexer = $parser->getLexer();
|
|
||||||
|
|
||||||
$parser->match(Lexer::T_IDENTIFIER);
|
$parser->match(Lexer::T_IDENTIFIER);
|
||||||
$parser->match(Lexer::T_OPEN_PARENTHESIS);
|
$parser->match(Lexer::T_OPEN_PARENTHESIS);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user