1
0
mirror of synced 2025-01-31 04:21:44 +03:00

replace non-existant constant Lexer::T_ABS

This commit is contained in:
ebernhardson 2011-12-13 10:36:14 -08:00
parent e85ce5c02f
commit 5ea8861bf3

View File

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