Go to variable class Follow
class A {
/**
* @return B[]
*/
public function getItems(){ /**..**/}
}
class B {}
$a = new A();
$items = $a->getItems();
foreach ($items as $item){
$item->
}
How do i go to the class B, to which belongs the $item variable according to the PhpDOC notation?
Ctrl+B goes in foreach declaration, when i apply it over $item var.
On Ctrl+Shift+B does not happen anything
Please sign in to leave a comment.
Hi Alexei,
Ctrl+Shift+B supposed to be the action you are after .. but it does not work for me as well (I have tried few more different examples -- the same result).
I would suggest to submit a bug report to Issue Tracker -- http://youtrack.jetbrains.net/issues/WI