| Summary: | lack of php array type inference | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | z_Archived | Reporter: | Zhongwei Zhao <zhaozhongwei> | ||||||
| Component: | PDT | Assignee: | PHP Core <php.core-inbox> | ||||||
| Status: | CLOSED FIXED | QA Contact: | Ilina Stefanova <ilina.s> | ||||||
| Severity: | normal | ||||||||
| Priority: | P1 | CC: | ganoro, kalin.a | ||||||
| Version: | unspecified | ||||||||
| Target Milestone: | --- | ||||||||
| Hardware: | PC | ||||||||
| OS: | Windows XP | ||||||||
| Whiteboard: | |||||||||
| Attachments: |
|
||||||||
Created attachment 184097 [details]
patch
based on zhao's patch
Created attachment 184098 [details]
unit tests
fixed Verified. Closing... |
<?php class Employee { } class Employee1 { } $rows = array(); $rows[] = new Employee(); $rows[] = new Employee1(); $rows should be multitype:Employee Employee1 $rows[0] should be Ambigous <Employee, Employee1>