diff --git a/src/Psalm/Internal/Analyzer/Statements/Expression/Call/MethodCallAnalyzer.php b/src/Psalm/Internal/Analyzer/Statements/Expression/Call/MethodCallAnalyzer.php index 6982c6564..bda1bb3d4 100644 --- a/src/Psalm/Internal/Analyzer/Statements/Expression/Call/MethodCallAnalyzer.php +++ b/src/Psalm/Internal/Analyzer/Statements/Expression/Call/MethodCallAnalyzer.php @@ -443,8 +443,8 @@ class MethodCallAnalyzer extends \Psalm\Internal\Analyzer\Statements\Expression\ if ($storage->if_this_is_type && !UnionTypeComparator::isContainedBy( $codebase, - $storage->if_this_is_type, - $class_type + $class_type, + $storage->if_this_is_type ) ) { if (IssueBuffer::accepts(