Phpstorm Intellisense on Pass by reference

Hi ,

I am not able to get the implementation of a particular object in phpstorm if the object is initialized with pass by reference.

eg:

#lcsLogManager =& LogManager::getInstance();

 

&clsLogManager->logit();

 

if i press Ctrl-B on the logit() function the intellisense is not taking me to the actual implementation of the logit function.

 

Please help on this????

1 comment
Comment actions Permalink

Could you please provide us with a valid code sample? I tried to use the following one, and was totally able to go to the method declaration.

class X {
public function logit () {}
}

class LogManager {
public static function getInstance() {
return new X;
}
}

$lcsLogManager =& LogManager::getInstance();

$lcsLogManager->logit();
0

Please sign in to leave a comment.