mirror of
https://github.com/rectorphp/rector.git
synced 2025-02-24 03:35:01 +01:00
commit
4929beff45
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user