diff --git a/rules/generic/src/NodeTypeAnalyzer/CallTypeAnalyzer.php b/rules/generic/src/NodeTypeAnalyzer/CallTypeAnalyzer.php
index <HASH>..<HASH> 100644
--- a/rules/generic/src/NodeTypeAnalyzer/CallTypeAnalyzer.php
+++ b/rules/generic/src/NodeTypeAnalyzer/CallTypeAnalyzer.php
@@ -80,9 +80,12 @@ final class CallTypeAnalyzer
     {
         $classReflection = $this->reflectionProvider->getClass($className);
 
-        /** @var string $methodName */
         $methodName = $this->nodeNameResolver->getName($node->name);
 
+        if (! $methodName) {
+            return [];
+        }
+
         $scope = $node->getAttribute(AttributeKey::SCOPE);
         if (! $scope instanceof Scope) {
             return [];
Fix CallTypeAnalyzer when methodName is null (#<I>)