We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1461d89 commit dbc7faeCopy full SHA for dbc7fae
src/Collector/MethodCallCollector.php
@@ -113,8 +113,13 @@ private function registerStaticCall(
113
$callerType = $scope->getType($staticCall->class);
114
$classReflections = $this->getReflectionsWithMethod($callerType, $methodName);
115
} else {
116
+ $class = $scope->resolveName($staticCall->class);
117
+
118
+ if (!$this->reflectionProvider->hasClass($class)) {
119
+ return null;
120
+ }
121
$classReflections = [
- $this->reflectionProvider->getClass($scope->resolveName($staticCall->class)),
122
+ $this->reflectionProvider->getClass($class),
123
];
124
}
125
0 commit comments