From c28d96e25ce4a613175e8356b92d7e0ef0298155 Mon Sep 17 00:00:00 2001 From: Bruce Weirdan Date: Wed, 15 Feb 2023 03:55:49 -0400 Subject: [PATCH] Fixed issue message for missing `@psalm-external-mutation-free` Fixes vimeo/psalm#8604 --- src/Psalm/Internal/Analyzer/MethodComparator.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Psalm/Internal/Analyzer/MethodComparator.php b/src/Psalm/Internal/Analyzer/MethodComparator.php index ed56927f8..82e1c6c48 100644 --- a/src/Psalm/Internal/Analyzer/MethodComparator.php +++ b/src/Psalm/Internal/Analyzer/MethodComparator.php @@ -320,10 +320,10 @@ class MethodComparator ) { IssueBuffer::maybeAdd( new MissingImmutableAnnotation( - $cased_guide_method_id . ' is marked @psalm-immutable, but ' + $cased_guide_method_id . ' is marked @psalm-external-mutation-free, but ' . $implementer_classlike_storage->name . '::' . ($guide_method_storage->cased_name ?: '') - . ' is not marked @psalm-immutable', + . ' is not marked @psalm-external-mutation-free', $code_location, ), $suppressed_issues + $implementer_classlike_storage->suppressed_issues,