[ https://issues.apache.org/jira/browse/NETBEANS-4650?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17166482#comment-17166482 ]
flexJoly commented on NETBEANS-4650: ------------------------------------ done ;) > PHP: Codecompletion on traits > ----------------------------- > > Key: NETBEANS-4650 > URL: https://issues.apache.org/jira/browse/NETBEANS-4650 > Project: NetBeans > Issue Type: Bug > Components: php - Editor > Affects Versions: 12.0, 11.3 > Reporter: flexJoly > Assignee: Junichi Yamamoto > Priority: Major > Attachments: screenshot-1.png, screenshot-2.png, screenshot-3.png > > > When you want to set a trait in the use-list (directly under the namespace) > netbeans will not show the trait in the suggestion. > h3. Steps to reproduce: > * Make a simple trait in php > {code:php} > namespace test; > trait MyTrait{}{code} > * Make a class in php{color:#808080} {color} > {code:php} > namespace somewhere; > class MyClass{}{code} > * try to add a use to the trait like: (see first screenshot below) > {code:php} > namespace somewhere; > // add trait here, netbeans does not show your trait in the suggestion list, > // you need to type it yourself > // after you fully typed it, netbeans does recognize it > use test\MyTrait; > class MyClass{}{code} > h3. Expected result > Show trait in code-completion when adding it as use under the namespace. > h3. Some screenshots > Trait not shown codecompletion when adding as use: > !screenshot-2.png! > h3. When adding the trait directly in the class, netbeans does help you. > !screenshot-1.png! > > > trait recognized in uselist and inside class > !screenshot-3.png! > -- This message was sent by Atlassian Jira (v8.3.4#803005) --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org For additional commands, e-mail: commits-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists