| Summary: | [CA]Support CA for "$array[0]->" | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | z_Archived | Reporter: | xu jiaxi <legend7z> | ||||||
| Component: | PDT | Assignee: | 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: |
|
||||||||
Created attachment 184005 [details]
patch
Created attachment 184006 [details]
unit test
thanks! Verified. Closing... |
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 ?>