Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 331400 - lack of php array type inference
Summary: lack of php array type inference
Status: CLOSED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: PDT (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P1 normal (vote)
Target Milestone: ---   Edit
Assignee: PHP Core CLA
QA Contact: Ilina Stefanova CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-11-30 03:49 EST by Zhongwei Zhao CLA
Modified: 2020-05-14 10:17 EDT (History)
2 users (show)

See Also:


Attachments
patch (14.58 KB, patch)
2010-11-30 03:57 EST, xu jiaxi CLA
no flags Details | Diff
unit tests (2.84 KB, patch)
2010-11-30 03:58 EST, xu jiaxi CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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...