This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
T_CALLABLE(callable) and T_TRAIT_C(__TRAIT__) can be used since PHP5.4. But they are missing in the lexer and the parser. So, the following code is not marked as errors (If they are in a global context, they are syntax errors even if PHP7 is used.): <?php const callable = 0; const __TRAIT__ = "__TRAIT__"; Probably, this should be fixed before the issue 262141 is fixed. I'll try it. Thanks.
Thanks a lot!
Fixed. Probably, the print() method was forgotten to add in the PrintASTVisitor.visit(ReturnStatement). So, I've added it. http://hg.netbeans.org/web-main/rev/dccae1d847b6 Thanks.
As always, thanks a lot, Junichi!
You are welcome :)
Integrated into 'main-silver', will be available in build *201610200002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/dccae1d847b6 User: Junichi Yamamoto <junichi11@netbeans.org> Log: #268496 - Missing T_CALLABLE and T_TRAIT_C in the lexer and the parser
Marking as a patch candidate as well (needed to harmless hg transplant of other changes to PHP parser). Thanks.
Transplanted to the releases repo branch release82: http://hg.netbeans.org/releases/rev/5c0353286c32 Thanks.
82patch1-verified