mirror of
https://github.com/phabelio/PHP-Parser.git
synced 2024-12-04 10:28:18 +01:00
e16513a0eb
The new dereferencing syntaxes (new Foo)->bar and (new Foo)['bar'] were causing a shift/reduce conflict with the '(' expr ')' rule. When (new Foo) was encountered (without dereference operators following) the parser thus threw a parse error. The fix simply adds a special '(' new_expr ')' rule to expr. This does not remove the shift/reduce conflict itself, but makes it irrelevant. This fixes issue #20. |
||
---|---|---|
.. | ||
fetchAndCall | ||
arrayDef.test | ||
assign.test | ||
cast.test | ||
clone.test | ||
closure.test | ||
comparison.test | ||
errorSuppress.test | ||
exit.test | ||
includeAndEval.test | ||
issetAndEmpty.test | ||
logic.test | ||
math.test | ||
new.test | ||
print.test | ||
shellExec.test | ||
ternary.test | ||
variable.test |