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 259148 - [PHP7] Semicolon not completed for group uses
Summary: [PHP7] Semicolon not completed for group uses
Status: RESOLVED FIXED
Alias: None
Product: php
Classification: Unclassified
Component: Editor (show other bugs)
Version: 8.2
Hardware: All All
: P3 normal (vote)
Assignee: junichi11
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-05-06 11:08 UTC by Tomas Mysik
Modified: 2016-05-10 11:27 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 Tomas Mysik 2016-05-06 11:08:01 UTC
If one starts typing manually group use statement, the IDE completes "{" with "}" but without semicolon. This causes incorrect formatting of classes to be imported if code-completion is used. If the semicolon is there, the formatting after code-completion is correct.
Comment 1 junichi11 2016-05-08 00:11:27 UTC
I'll fix it.

Thanks.
Comment 2 junichi11 2016-05-10 02:47:12 UTC
Fixed. The following cases are also considered.

- closure :
function() use ($a) {

- use trait :
class C {
    use MyTrait{
}
(This case doesn't work fine in NB8.1. But it was fixed in this change.)

http://hg.netbeans.org/web-main/rev/22c2e1266e80

Thanks!
Comment 3 Tomas Mysik 2016-05-10 11:27:01 UTC
Great, thanks a lot, Junichi!