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

Bug 370962

Summary: [PHP5.4] No content assist on returned array
Product: z_Archived Reporter: Sylvia Tancheva <silviya>
Component: PDTAssignee: PHP Core <php.core-inbox>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: zhaozhongwei
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Sylvia Tancheva CLA 2012-02-08 10:16:43 EST
In PHP 5.4 one can call arrays after function calls. For example:

function foo() {
       $o = new MyClass();
       $a = [ $o ];
       return $a; 
}

foo()[0]->| <-- CA here

should provide MyClass methods...
Comment 1 Zhongwei Zhao CLA 2012-02-09 02:19:15 EST
fixed
Comment 2 Sylvia Tancheva CLA 2012-03-01 07:21:24 EST
Verified. Closing.