Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 316236 - No instance variables hint in ZS for PHP magic methods(__set/__get).
Summary: No instance variables hint in ZS for PHP magic methods(__set/__get).
Status: CLOSED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: PDT (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: PHP Core CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-06-09 00:28 EDT by Zhongwei Zhao CLA
Modified: 2020-05-14 11:16 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Zhongwei Zhao CLA 2010-06-09 00:28:36 EDT
Consider the following code:

<?php
/**
 * @property ClA $m
 * @property ClA $propOne 
 */
class ClA {
    private $propOne = 1;
    private static $propTwo = 2;
    public $propThree = 3;
    
    public function __get($pName){
        return $this->$pName;
    }
}

$a = new ClA();
$a-> //at this point all 3 properties should appear in CA proposals

basically the propOne is missing.
Comment 1 Zhongwei Zhao CLA 2010-06-09 00:48:37 EDT
fixed in head
Comment 2 Gadi Goldbarg CLA 2010-06-16 11:58:25 EDT
Verified at PDT-2.2.0.v20100616
And three possible CA suggestions are proposed

Closing this issue

Verified by
Teodor Kirkov
teodor.k@zend.com