Skip to content

Commit fceb839

Browse files
committed
Updated for latest PHPStan dev-master
1 parent 5629c0a commit fceb839

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Rules/PHPUnit/AssertSameDifferentTypesRule.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ public function processNode(Node $node, Scope $scope): array
4747
return [];
4848
}
4949

50-
if (!$testCaseType->isSupersetOf($calledOnType)->yes()) {
50+
if (!$testCaseType->isSuperTypeOf($calledOnType)->yes()) {
5151
return [];
5252
}
5353

@@ -61,7 +61,7 @@ public function processNode(Node $node, Scope $scope): array
6161
$leftType = $scope->getType($node->args[0]->value);
6262
$rightType = $scope->getType($node->args[1]->value);
6363

64-
if ($leftType->isSupersetOf($rightType)->no()) {
64+
if ($leftType->isSuperTypeOf($rightType)->no()) {
6565
return [
6666
sprintf(
6767
'Call to assertSame() with different types %s and %s will always result in test failure.',

0 commit comments

Comments
 (0)