diff --git a/src/Collector/MethodCallCollector.php b/src/Collector/MethodCallCollector.php index cb77890..d861dd3 100644 --- a/src/Collector/MethodCallCollector.php +++ b/src/Collector/MethodCallCollector.php @@ -114,6 +114,7 @@ private function registerStaticCall( $classReflections = $this->getReflectionsWithMethod($callerType, $methodName); } else { $className = $scope->resolveName($staticCall->class); + if ($this->reflectionProvider->hasClass($className)) { $classReflections = [ $this->reflectionProvider->getClass($className),