Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 331298 - [CA]Support CA for "$array[0]->"
Summary: [CA]Support CA for "$array[0]->"
Status: CLOSED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: PDT (show other bugs)
Version: unspecified   Edit
Hardware: All All
: P2 normal (vote)
Target Milestone: ---   Edit
Assignee: PHP Core CLA
QA Contact: Ilina Stefanova CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-11-29 02:38 EST by xu jiaxi CLA
Modified: 2020-05-14 11:07 EDT (History)
1 user (show)

See Also:


Attachments
patch (3.18 KB, patch)
2010-11-29 02:39 EST, xu jiaxi CLA
no flags Details | Diff
unit test (667 bytes, patch)
2010-11-29 02:39 EST, xu jiaxi CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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...