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.
Summary: | Does not show interface implementation icon/hint in Traits | ||
---|---|---|---|
Product: | php | Reporter: | AnmSaiful |
Component: | Editor | Assignee: | junichi11 |
Status: | RESOLVED WORKSFORME | ||
Severity: | normal | CC: | junichi11, tmysik |
Priority: | P3 | ||
Version: | 8.2 | ||
Hardware: | All | ||
OS: | All | ||
Issue Type: | DEFECT | Exception Reporter: |
Description
AnmSaiful
2017-03-01 12:56:20 UTC
Not a P2, sorry. Please, attach a sample file(s) so we are sure what you mean exactly. Thanks for reporting. Well, let me explain with some code. Let's consider the following simple code. --- interface.php interface I { public function netbeans(); } --- trait.php trait T { public function netbeans() { return; } } --- class.php include 'interface.php'; include 'trait.php'; class C implements I { use T; } --- Well, now in the IDE, an implementation icon/hit (i.e. (I)) should be shown in the second line of the trait, right? But it does not show as expected. It only works if I write the function body inside the class, not the trait. Make sense? Please let me know if you need more clarification. Thanks in advance. :-) Thanks for the sample codes. Perhaps, many classes have to be checked if it is implemented because a trait does not know where itself is used. I think that it would have a performance problem. Thanks. Yep, valid point. I think you can close the issue now. Thanks anyway. :-) (In reply to AnmSaiful from comment #5) > Yep, valid point. I think you can close the issue now. Thanks anyway. :-) Sure :) I'll mark as RESOLVED. Thanks! |