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

Summary: [PHP7] Semicolon not completed for group uses
Product: php Reporter: Tomas Mysik <tmysik>
Component: EditorAssignee: junichi11
Status: RESOLVED FIXED    
Severity: normal CC: junichi11
Priority: P3    
Version: 8.2   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:

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!