PhpStorm 4 code auto completion
I have a controller in CakePHP 2.2 application.
I use PhpStorm 4.0.1 as IDE.
In MyController.php file I declare this:
/**
* @property MyUtilComponent $MyUtil
*/
1. Inside my controller, when I write `$this->` I can select "MyUtilComponent" from drop down list. 
2. But when I write `$this->MyUtilComponent->` no function name option comes to select. 
3. When I write $this->MyUtil->addThis(); and then click to addThis word and "Go to declaration", then PhpStorm goes to method's declaration successfully.
What should I do more to get function names autocompletion ?
Note: The behaviour is same for the core components.
请先登录再写评论。
I think it was fixed in v5...
Aren't there any patches for this? Or must I upgrade to v5?
Thank you
You have to try if it was fixed first ... I think it was.
You can try v6 EAP :
Regarding v4 -- latest version is 4.0.3 (while you stated you have 4.0.1) -- http://confluence.jetbrains.com/display/PhpStorm/Previous+PhpStorm+Releases