Bug 434498 - Hyperlink for @var with interfaces not work
Summary: Hyperlink for @var with interfaces not work
Status: CLOSED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: PDT (show other bugs)
Version: unspecified   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: PHP UI CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-05-09 09:06 EDT by Dawid Pakula CLA
Modified: 2020-05-14 11:29 EDT (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dawid Pakula CLA 2014-05-09 09:06:09 EDT
Example:
/**
 * @var MyClass
 */
public $myVar;

Expected:
hyperlink on MyClass

Current:
works only with @param* or @return
Comment 1 Dawid Pakula CLA 2014-05-09 09:37:56 EDT
Only with interfaces, sorry.
Comment 2 Michal Niewrzal CLA 2014-07-29 05:19:54 EDT
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) {
}
?>
Comment 3 Michal Niewrzal CLA 2014-07-29 05:47:49 EDT
Open question for me is hyperlink should be active for trait for these cases.

Patch proposal https://git.eclipse.org/r/#/c/30645/
Comment 5 Dawid Pakula CLA 2014-07-29 12:40:34 EDT
(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 ;)
Comment 6 Sylvia Tancheva CLA 2014-11-27 10:50:07 EST
All the below examples now work OK, Closing