diff --git a/src/Psalm/Internal/Analyzer/MethodComparator.php b/src/Psalm/Internal/Analyzer/MethodComparator.php index 499850cc8ef..a0c3e662198 100644 --- a/src/Psalm/Internal/Analyzer/MethodComparator.php +++ b/src/Psalm/Internal/Analyzer/MethodComparator.php @@ -890,7 +890,10 @@ private static function compareMethodSignatureReturnTypes( : (!$implementer_signature_return_type && $guide_signature_return_type->isMixed() ? false - : UnionTypeComparator::isContainedByInPhp($implementer_signature_return_type, $guide_signature_return_type) + : UnionTypeComparator::isContainedByInPhp( + $implementer_signature_return_type, + $guide_signature_return_type + ) ); if (!$is_contained_by) {