Skip to content

Commit

Permalink
Fix usage of a <-> an in error messages
Browse files Browse the repository at this point in the history
  • Loading branch information
MoonE committed Nov 10, 2024
1 parent be04deb commit d09a737
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,7 @@ private static function analyzeNamedConstructor(
if ($storage->abstract && !$can_extend) {
if (IssueBuffer::accepts(
new AbstractInstantiation(
'Unable to instantiate a abstract class ' . $fq_class_name,
'Unable to instantiate an abstract class ' . $fq_class_name,
new CodeLocation($statements_analyzer->getSource(), $stmt),
),
$statements_analyzer->getSuppressedIssues(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -234,8 +234,7 @@ public static function getOptionsArgValueOrError(
// silently ignored by the function, but this usually indicates a bug
IssueBuffer::maybeAdd(
new InvalidArgument(
'The "options" key in ' . $function_id
. ' must be a an array',
'The "options" key in ' . $function_id . ' must be an array',
$code_location,
$function_id,
),
Expand Down

0 comments on commit d09a737

Please sign in to comment.