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: | code completion from phpDoc for inherited objects/classes and interfaces | ||
---|---|---|---|
Product: | php | Reporter: | koubel |
Component: | Editor | Assignee: | rmatous <rmatous> |
Status: | VERIFIED FIXED | ||
Severity: | normal | CC: | fzamboj |
Priority: | P4 | ||
Version: | 6.x | ||
Hardware: | PC | ||
OS: | All | ||
Issue Type: | ENHANCEMENT | Exception Reporter: | |
Attachments: |
nice code completion for parent
no php doc in completion for childs |
Description
koubel
2010-02-03 02:59:53 UTC
if you had in mind CC like this: var = new MyChild(); $var->method1->| or $var->method2->| then, the problem is that string (@return string) isn't object in PHP if you didn't explicitly added your won impl. for it. Changing the doc's type to MyChild (or whatever other object) like this: @return MyChild should work Sorry, I made a mistake in description. The code completion problem with previous OOP code is when I type just $var = new MyChild(); $var->| I expect same result as for $var = new MyParent(); $var->| because MyChild inherits from MyParent a behaviour of methods described via phpdoc in parent is same in child. It's especially expected on abstract methods. I try to add screen shots for both described situations. Created attachment 93833 [details]
nice code completion for parent
Created attachment 93834 [details]
no php doc in completion for childs
example is little bit odd, because I cannot instantiate abstract class directly but works good for demonstration of "inheritance" of phpdoc in OOP code. Just notice, I tried today test it with latest build from http://bertram.netbeans.org/hudson/job/PHP-build/1832/ but IDE is after while in state "Checking for external changes - Suspended". IDE isn't friezed, but it seems "Checking for external changes" never finises. I'll wait a few days for a new release and try to search related issues. Never ending refresh will be probably following issue: http://netbeans.org/bugzilla/show_bug.cgi?id=185900 Integrated into 'main-golden', will be available in build *201005122200* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main/rev/ User: Log: v/c Product Version: NetBeans IDE Dev (Build 100517-f3e07cd88d57) |