We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1461d89 commit d882f47Copy full SHA for d882f47
src/Collector/MethodCallCollector.php
@@ -113,9 +113,15 @@ private function registerStaticCall(
113
$callerType = $scope->getType($staticCall->class);
114
$classReflections = $this->getReflectionsWithMethod($callerType, $methodName);
115
} else {
116
- $classReflections = [
117
- $this->reflectionProvider->getClass($scope->resolveName($staticCall->class)),
118
- ];
+ $className = $scope->resolveName($staticCall->class);
+
+ if ($this->reflectionProvider->hasClass($className)) {
119
+ $classReflections = [
120
+ $this->reflectionProvider->getClass($className),
121
+ ];
122
+ } else {
123
+ $classReflections = [];
124
+ }
125
}
126
127
$result = [];
0 commit comments