Bug 533717 - code assist on PHPDoc @var tags should work the same as for @param tags
Summary: code assist on PHPDoc @var tags should work the same as for @param tags
Status: CLOSED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: PDT (show other bugs)
Version: unspecified   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Thierry BLIND CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-04-17 18:01 EDT by Thierry BLIND CLA
Modified: 2020-05-14 13:14 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Thierry BLIND CLA 2018-04-17 18:01:34 EDT
Hi,
PHPDoc @var tags are handled differently from @param or @return tags, since CA on multiple-types doesn't work the same. For example, trying to use CA on the "Date" part doesn't work with @var tags:

<?
class A
{

    /**
     *
     * @var array[DateTime]|Date <--- CA will not work
     */
    private $buffer;

    /**
     *
     * @param array[DateTime]|Date <--- will work
     * @return array[DateTime]|Date <--- will work
     */
    function X()
    {
    }
}

Thierry.
Comment 1 Eclipse Genie CLA 2018-04-17 18:05:22 EDT
New Gerrit change created: https://git.eclipse.org/r/121287