Skip to content

Commit

Permalink
fix psalm errors
Browse files Browse the repository at this point in the history
  • Loading branch information
llaville committed Jun 2, 2024
1 parent c4c674b commit bce59cf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/Psalm/Internal/Cli/Psalm.php
Original file line number Diff line number Diff line change
Expand Up @@ -1265,6 +1265,7 @@ private static function getHelpText(): string
sort($formats);
$outputFormats = wordwrap(implode(', ', $formats), 75, "\n ");

/** @psalm-suppress ImpureMethodCall */
$reports = array_keys(Report::getMapping());
sort($reports);
$reportFormats = wordwrap('"' . implode('", "', $reports) . '"', 75, "\n ");
Expand Down
3 changes: 3 additions & 0 deletions src/Psalm/Report.php
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,9 @@ protected function xmlEncode(string $data): string

abstract public function create(): string;

/**
* @return array<string, self::TYPE_*>
*/
public static function getMapping(): array
{
return [
Expand Down

0 comments on commit bce59cf

Please sign in to comment.