diff --git a/src/Psalm/Internal/Analyzer/Statements/Expression/Call/NewAnalyzer.php b/src/Psalm/Internal/Analyzer/Statements/Expression/Call/NewAnalyzer.php index 8f35fee56b3..2ce4c97ad2f 100644 --- a/src/Psalm/Internal/Analyzer/Statements/Expression/Call/NewAnalyzer.php +++ b/src/Psalm/Internal/Analyzer/Statements/Expression/Call/NewAnalyzer.php @@ -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(), diff --git a/src/Psalm/Internal/Provider/ReturnTypeProvider/FilterUtils.php b/src/Psalm/Internal/Provider/ReturnTypeProvider/FilterUtils.php index 5c32126de0e..48ce8c60d16 100644 --- a/src/Psalm/Internal/Provider/ReturnTypeProvider/FilterUtils.php +++ b/src/Psalm/Internal/Provider/ReturnTypeProvider/FilterUtils.php @@ -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, ),