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.
when I do a navigation->go to declaration on a $obj = new myClass("a", "b", "c"); this must go to __construct() method declaration of the myClass class not to the class myClass declaration line.
I agree, it should behave this way. Radku, do you want to take on this one?
P4 for me.
*** This issue has been marked as a duplicate of 143426 ***
I think that this feature has one side effect at the moment. I don't known that I must create new Issue, or I can reopen this. Problem is, where I have class B that is child of A, and only A has _construct() method. When i click to class B at this line: $inst = new B(); Netbeans open class A on the method _construct(), but I need class B. When I clicked to class B, I expected class B, not class A. What do you think? I think, that Netbeans must open class B and go to _construct() only if exists.
The current behavior is intentional and right, I think. The same like in this code: class A { function call() { echo "call"; } } class B extends A {} $b = new B(); $b->call(); Jumping into "call" method referenced from $b (last line) will also go into "call" method declaration in "A" class declaration. The behavior in both cases (this one && the one mentioned by you) should be consistent no matter whether its just constructor or plain method, anyway constructor is method.
Yes, when I click to method is logical, that I can this method and I have no interest in which class is. But When I click to class name, I can this class. Netbeans has this behavior in Java code. When you click to class name, go to class constructor or to class definition, if class has no constructor.
Please it's possible change actual behavior as I wrote before. The same way as it work in Java. It's very annoying. I must daily open many classes which has child of another class a Netbeans always open it's parent :-(
Fixed according tprochazka's request: http://hg.netbeans.org/web-main/rev/cba839250edc
Integrated into 'main-golden', will be available in build *200905140201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/cba839250edc User: Radek Matous <rmatous@netbeans.org> Log: #146548 go to declaration on $var = new myClass() must go to __constructor method