Let's say we have 2 php classes "test1" and "test2":
class test1 code:
public function methodOne()
public function methodTwo()
class test2 code:
public function createInstance()
$this->testVar = new test1();
$this->testVar-> // gives methodOne() and methodTwo() as suggestions, good! :)
$this->testVar->methodOne(); // ok, no problem here.
public function executeMethod()
$this->testVar-> // no methodOne() and methodTwo() as suggestions?? ?:|
$this->testVar->methodOne(); // PhpStorm says "Method 'methodOne' not found in class".
As you can see, behind the "$this->testVar->" in the "executeMethod()", PhpStorm gives no autocomplete or any kind of method suggestions. This really surprised me because when I open the same code within NetBeans or Aptana Studio they gave (as expected) the methodOne() and methodTwo() as suggestions.
Is this a bug in PhpStorm? I am doing something wrong? Maybe some PhpStorm IDE setting will fix this?
- it has been tested in PhpStorm 6.0 and EAP version 7.0 build 131.235 with their default "out-of-the-box" settings under Windows 7 and 8 (both 64-bits)
- i tried the option "Invalidate Caches" without succes
Please ask me when something is not clear and/or if you need additional information about this case ;)