Skip to content

Commit 3f646d7

Browse files
committed
Updated for latest PHPStan dev-master
1 parent f1cc911 commit 3f646d7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Rules/SwitchConditions/MatchingTypeInSwitchCaseConditionRule.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ public function processNode(\PhpParser\Node $node, \PHPStan\Analyser\Scope $scop
3333
}
3434

3535
$caseType = $scope->getType($case->cond);
36-
if ($conditionType->isSupersetOf($caseType)->no()) {
36+
if ($conditionType->isSuperTypeOf($caseType)->no()) {
3737
$messages[] = sprintf(
3838
'Switch condition type (%s) does not match case condition %s (%s).',
3939
$conditionType->describe(),

0 commit comments

Comments
 (0)