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

Bug 331298

Summary: [CA]Support CA for "$array[0]->"
Product: z_Archived Reporter: xu jiaxi <legend7z>
Component: PDTAssignee: PHP Core <php.core-inbox>
Status: CLOSED FIXED QA Contact: Ilina Stefanova <ilina.s>
Severity: normal    
Priority: P2 CC: kalin.a
Version: unspecified   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:
Attachments:
Description Flags
patch
none
unit test none

Description xu jiaxi CLA 2010-11-29 02:38:31 EST
For the following code, we should provide CA for "$array[0]->|".
<?php
class Employee {
	public $a;
}
class Employee1 {
	public $b;
}

$array = array(new Employee(), new Employee1());
$array[0]->|		// support CA here
?>
Comment 1 xu jiaxi CLA 2010-11-29 02:39:12 EST
Created attachment 184005 [details]
patch
Comment 2 xu jiaxi CLA 2010-11-29 02:39:40 EST
Created attachment 184006 [details]
unit test
Comment 3 Zhongwei Zhao CLA 2011-04-28 01:06:04 EDT
thanks!
Comment 4 Kalin CLA 2011-07-26 04:22:09 EDT
Verified.
Closing...