Skip to content

Commit

Permalink
Fixed issue message for missing @psalm-external-mutation-free
Browse files Browse the repository at this point in the history
Fixes #8604
  • Loading branch information
weirdan committed Feb 15, 2023
1 parent efc389b commit 6516676
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Psalm/Internal/Analyzer/MethodComparator.php
Original file line number Diff line number Diff line change
Expand Up @@ -320,10 +320,10 @@ private static function checkForObviousMethodMismatches(
) {
IssueBuffer::maybeAdd(
new MissingImmutableAnnotation(
$cased_guide_method_id . ' is marked @psalm-immutable, but '
$cased_guide_method_id . ' is marked @psalm-external-mutation-freeee, 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,
Expand Down

0 comments on commit 6516676

Please sign in to comment.