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

Bug 331400

Summary: lack of php array type inference
Product: z_Archived Reporter: Zhongwei Zhao <zhaozhongwei>
Component: PDTAssignee: 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:
Description Flags
patch
none
unit tests none

Description Zhongwei Zhao CLA 2010-11-30 03:49:15 EST
<?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>
Comment 1 xu jiaxi CLA 2010-11-30 03:57:54 EST
Created attachment 184097 [details]
patch

based on zhao's patch
Comment 2 xu jiaxi CLA 2010-11-30 03:58:17 EST
Created attachment 184098 [details]
unit tests
Comment 3 Zhongwei Zhao CLA 2011-04-18 04:34:22 EDT
fixed
Comment 4 Kalin CLA 2011-08-03 04:01:46 EDT
Verified.
Closing...