We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b04f719 commit fab94deCopy full SHA for fab94de
src/Rules/StrictCalls/DynamicCallOnStaticMethodsRule.php
@@ -44,7 +44,7 @@ public function processNode(Node $node, Scope $scope): array
44
''
45
)->getType();
46
47
- if ($type instanceof ErrorType || !$type->canCallMethods() || !$type->hasMethod($name)) {
+ if ($type instanceof ErrorType || !$type->canCallMethods()->yes() || !$type->hasMethod($name)) {
48
return [];
49
}
50
0 commit comments