Skip to content

Commit 1a70789

Browse files
committed
Improved compatibility with PHPStan 0.11
1 parent 7c5de1d commit 1a70789

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Rules/StrictCalls/DynamicCallOnStaticMethodsRule.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,11 @@ public function processNode(Node $node, Scope $scope): array
4242
$node->var,
4343
'',
4444
function (Type $type) use ($name): bool {
45-
return $type->canCallMethods()->yes() && $type->hasMethod($name);
45+
return $type->canCallMethods()->yes() && $type->hasMethod($name)->yes();
4646
}
4747
)->getType();
4848

49-
if ($type instanceof ErrorType || !$type->canCallMethods()->yes() || !$type->hasMethod($name)) {
49+
if ($type instanceof ErrorType || !$type->canCallMethods()->yes() || !$type->hasMethod($name)->yes()) {
5050
return [];
5151
}
5252

0 commit comments

Comments
 (0)