mirror of
https://github.com/danog/phpdoc-parser.git
synced 2024-11-26 20:15:11 +01:00
ConstExprParser: fix building ConstFetchNode
This commit is contained in:
parent
97250e6dcc
commit
95787df9bf
@ -49,7 +49,7 @@ class ConstExprParser
|
||||
if ($tokens->tryConsumeTokenType(Lexer::TOKEN_DOUBLE_COLON)) {
|
||||
$classConstantName = $tokens->currentTokenValue();
|
||||
$tokens->consumeTokenType(Lexer::TOKEN_IDENTIFIER);
|
||||
return new Ast\ConstExpr\ConstFetchNode($classConstantName, $identifier);
|
||||
return new Ast\ConstExpr\ConstFetchNode($identifier, $classConstantName);
|
||||
|
||||
} else {
|
||||
return new Ast\ConstExpr\ConstFetchNode('', $identifier);
|
||||
|
Loading…
Reference in New Issue
Block a user