Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 316236

Summary: No instance variables hint in ZS for PHP magic methods(__set/__get).
Product: z_Archived Reporter: Zhongwei Zhao <zhaozhongwei>
Component: PDTAssignee: PHP Core <php.core-inbox>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: gadi
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

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