1
0
Fork 0

fix when unknown type is found in foreach expression

pull/562/head
Philip Nelson 2017-12-24 20:31:47 +11:00
parent a0caf8d18f
commit 5acc982b68
No known key found for this signature in database
GPG Key ID: 8C8235644C5E2279
2 changed files with 4 additions and 0 deletions

View File

@ -35,3 +35,6 @@ foreach ($array3 as $key => $value) {
foreach ($bar->test() as $value) {
$
}
foreach ($unknownArray as $unknown) {
$unkno

View File

@ -1122,6 +1122,7 @@ class DefinitionResolver
if ($collectionType instanceof Types\Array_) {
return $collectionType->getValueType();
}
return new Types\Mixed_();
}
// PROPERTIES, CONSTS, CLASS CONSTS, ASSIGNMENT EXPRESSIONS