1
0
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:
orklah 2021-09-30 09:37:56 +02:00 committed by GitHub
commit 02ef33c4ac
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

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

View File

@ -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()