Merge pull request #160 from rectorphp/parser-update

fix
This commit is contained in:
Tomáš Votruba 2017-11-14 05:07:39 +01:00 committed by GitHub
commit 4929beff45
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -128,7 +128,7 @@ final class MethodCallAnalyzer
return null;
}
$nodeTypes = $node->var->getAttribute(Attribute::TYPES);
$nodeTypes = (array) $node->var->getAttribute(Attribute::TYPES);
return array_intersect($nodeTypes, $types) ? $nodeTypes : null;
}