1
0
mirror of https://github.com/danog/psalm.git synced 2025-01-22 13:51:54 +01:00

Fixed issue message for missing @psalm-external-mutation-free

Fixes vimeo/psalm#8604
This commit is contained in:
Bruce Weirdan 2023-02-15 03:55:49 -04:00
parent efc389bfa8
commit c28d96e25c
No known key found for this signature in database
GPG Key ID: CFC3AAB181751B0D

View File

@ -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,