Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 370962 - [PHP5.4] No content assist on returned array
Summary: [PHP5.4] No content assist on returned array
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: 2012-02-08 10:16 EST by Sylvia Tancheva 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 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.