Community
Participate
Working Groups
Example: /** * @var MyClass */ public $myVar; Expected: hyperlink on MyClass Current: works only with @param* or @return
Only with interfaces, sorry.
Probable it doesn't work for all tags with types. Example with @return and @param: <?php interface TestInterface { } ; class TestClass implements TestInterface { } ; /** * * @param TestClass $object * On the TestClass (after @param) type hinting and Command+click works - OK. * @return TestClass On the TestClass (after @return) type hinting and Command+click works - OK. * */ function docTestOk($object) { } /** * * @param TestInterface $object * On the TestInterface (after @param) type hinting and Command+click DOES NOT work - ERROR. * @return TestInterface On the TestInterface (after @return) type hinting and Command+click DOES NOT work - ERROR. * */ function docTestError($object) { } ?>
Open question for me is hyperlink should be active for trait for these cases. Patch proposal https://git.eclipse.org/r/#/c/30645/
Merged: http://git.eclipse.org/c/pdt/org.eclipse.pdt.git/commit/?id=d10f27fc84a8a3a706c6e12148ce0f6b1cbbca43 Thank you Michal!
(In reply to Michal Niewrzal from comment #3) > Open question for me is hyperlink should be active for trait for these cases. I think that no ;)
All the below examples now work OK, Closing