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.
It occurs if there is no space before between ")" and "extends/implements". Reproducible code: <?php return new class($a)extends A{ }; expected: return new class($a) extends A{ }; actual: return new class($a) A{ }; Thanks.
Fixed. http://hg.netbeans.org/web-main/rev/af002b077872 Thanks.
Integrated into 'main-silver', will be available in build *201605140002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/af002b077872 User: Junichi Yamamoto <junichi11@netbeans.org> Log: #261521 - [PHP7] Incorrect formatting for anonymous classes