This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Have a code: <?php class Country { public $name; public $code; } class Address { public $street; public $city; /** * * @var Country */ public $country; } class Person { /** * * @var Address */ private $address; function getCity() { $this->address->city; $this->address->country->name; } } ?> Try to navigate through hyperlink into declaration of city or name in the getCity method.
Type resolution of goto declaration is very simple (just new WhateverObject). Doesn't work: - phpdoc not taken into account - methods chains generally - common assignments $a = new WhateverObject; $b = $a; - more advanced assignments like: $a = $b = $c = new new WhateverObject; - in catch block is known type catch (MyException exc) - instanceof block if ($v instanceof MyObject) As a result goto declaration doesn't work properly. Deserves a couple of days of coding, almost all this behavior was added already into CC (approximately during last 3 weeks)
Marking as duplicate of #143426 *** This issue has been marked as a duplicate of 143426 ***