Skip to content

Commit dbc7fae

Browse files
authored
fix internal error
1 parent 1461d89 commit dbc7fae

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/Collector/MethodCallCollector.php

+6-1
Original file line numberDiff line numberDiff line change
@@ -113,8 +113,13 @@ private function registerStaticCall(
113113
$callerType = $scope->getType($staticCall->class);
114114
$classReflections = $this->getReflectionsWithMethod($callerType, $methodName);
115115
} else {
116+
$class = $scope->resolveName($staticCall->class);
117+
118+
if (!$this->reflectionProvider->hasClass($class)) {
119+
return null;
120+
}
116121
$classReflections = [
117-
$this->reflectionProvider->getClass($scope->resolveName($staticCall->class)),
122+
$this->reflectionProvider->getClass($class),
118123
];
119124
}
120125

0 commit comments

Comments
 (0)