Skip to content

Commit 4bd45d6

Browse files
kukulichondrejmirtes
authored andcommitted
DynamicCallOnStaticMethodsRule: fixed PHPStan
1 parent 2769046 commit 4bd45d6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/Rules/StrictCalls/DynamicCallOnStaticMethodsRule.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ public function processNode(Node $node, Scope $scope): array
4444
''
4545
)->getType();
4646

47-
if ($type instanceof ErrorType || !$type->canCallMethods() || !$type->hasMethod($name)) {
47+
if ($type instanceof ErrorType || !$type->canCallMethods()->yes() || !$type->hasMethod($name)) {
4848
return [];
4949
}
5050

0 commit comments

Comments
 (0)