replace non-existant constant Lexer::T_ABS
This commit is contained in:
parent
e85ce5c02f
commit
5ea8861bf3
@ -626,7 +626,8 @@ classes have to implement the base class :
|
|||||||
namespace MyProject\Query\AST;
|
namespace MyProject\Query\AST;
|
||||||
|
|
||||||
use \Doctrine\ORM\Query\AST\Functions\FunctionNode;
|
use \Doctrine\ORM\Query\AST\Functions\FunctionNode;
|
||||||
|
use \Doctrine\ORM\Query\Lexer;
|
||||||
|
|
||||||
class MysqlFloor extends FunctionNode
|
class MysqlFloor extends FunctionNode
|
||||||
{
|
{
|
||||||
public $simpleArithmeticExpression;
|
public $simpleArithmeticExpression;
|
||||||
@ -642,7 +643,7 @@ classes have to implement the base class :
|
|||||||
{
|
{
|
||||||
$lexer = $parser->getLexer();
|
$lexer = $parser->getLexer();
|
||||||
|
|
||||||
$parser->match(Lexer::T_ABS);
|
$parser->match(Lexer::T_IDENTIFIER);
|
||||||
$parser->match(Lexer::T_OPEN_PARENTHESIS);
|
$parser->match(Lexer::T_OPEN_PARENTHESIS);
|
||||||
|
|
||||||
$this->simpleArithmeticExpression = $parser->SimpleArithmeticExpression();
|
$this->simpleArithmeticExpression = $parser->SimpleArithmeticExpression();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user