NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
Bug? Code completion: failed to identify type of variable


Joined: 17 Nov 2009
Posts: 1
Reply with quote
I'm not sure if it's a bug, but I noticed an unexpected behavior with the code completion feature
and Zend Framework (v. 1.9.5).

Sample code:
Code:
class Test_SomeController extends Zend_Controller_Action
{


public function testAction() {

....some code......


}

}


1) When I type "$this->" I get what I expect, all methods from Zend_Controller_Action.



2) When I assign "$this" to "$othername" ($othername = $this) and type "$othername->", I get an unexpected code completion error.



3) When I assign "$this->render()" (or some other method from Zend_Controller_Action) to "$othername"
and type "$othername->", I get all methods from Zend_Controller_Action ( the same as in 1) ).



Current PhpEd Version is 5.9 (Build 5921).
View user's profileFind all posts by ncitlSend private message
Site Admin

Joined: 13 Jul 2003
Posts: 8344
Reply with quote
Quote:
When I assign "$this" to "$othername" ($othername = $this) and type "$othername->", I get an unexpected code completion error

Could you please clarify why you need a copy of the object reference? Isn't $this enough?

_________________
The PHP IDE team
View user's profileFind all posts by dmitriSend private messageVisit poster's website
Bug? Code completion: failed to identify type of variable
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT - 5 Hours  
Page 1 of 1  

  
  
 Reply to topic