mirror of
https://github.com/danog/psalm.git
synced 2024-11-30 04:39:00 +01:00
Merge pull request #6554 from simPod/use-a
Use correct English articles
This commit is contained in:
commit
02ef33c4ac
@ -51,7 +51,7 @@ class MethodCallPurityAnalyzer
|
||||
) {
|
||||
if (IssueBuffer::accepts(
|
||||
new ImpureMethodCall(
|
||||
'Cannot call an possibly-mutating method '
|
||||
'Cannot call a possibly-mutating method '
|
||||
. $cased_method_id . ' from a mutation-free context',
|
||||
new CodeLocation($statements_analyzer, $stmt->name)
|
||||
),
|
||||
@ -66,7 +66,7 @@ class MethodCallPurityAnalyzer
|
||||
) {
|
||||
if (IssueBuffer::accepts(
|
||||
new ImpureMethodCall(
|
||||
'Cannot call an possibly-mutating method '
|
||||
'Cannot call a possibly-mutating method '
|
||||
. $cased_method_id . ' from a mutation-free context',
|
||||
new CodeLocation($statements_analyzer, $stmt->name)
|
||||
),
|
||||
|
@ -280,7 +280,7 @@ class ExistingAtomicStaticCallAnalyzer
|
||||
} elseif ($context->mutation_free && !$method_storage->mutation_free) {
|
||||
if (IssueBuffer::accepts(
|
||||
new ImpureMethodCall(
|
||||
'Cannot call an possibly-mutating method from a mutation-free context',
|
||||
'Cannot call a possibly-mutating method from a mutation-free context',
|
||||
new CodeLocation($statements_analyzer, $stmt_name)
|
||||
),
|
||||
$statements_analyzer->getSuppressedIssues()
|
||||
|
Loading…
Reference in New Issue
Block a user