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.

Bug 261521 - [PHP7] Incorrect formatting for anonymous classes
Summary: [PHP7] Incorrect formatting for anonymous classes
Status: RESOLVED FIXED
Alias: None
Product: php
Classification: Unclassified
Component: Formatting & Indentation (show other bugs)
Version: 8.2
Hardware: All All
: P3 normal (vote)
Assignee: junichi11
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-05-13 02:41 UTC by junichi11
Modified: 2016-05-14 02:22 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description junichi11 2016-05-13 02:41:56 UTC
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.
Comment 1 junichi11 2016-05-13 03:39:07 UTC
Fixed.

http://hg.netbeans.org/web-main/rev/af002b077872

Thanks.
Comment 2 Quality Engineering 2016-05-14 02:22:49 UTC
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