Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
kkmuffme committed Oct 1, 2023
1 parent c67dce7 commit 4807086
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Psalm/Issue/InternalClass.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

namespace Psalm\Issue;

use function array_unique;
use function array_pop;
use function count;
use function implode;
Expand All @@ -15,6 +16,7 @@ final class InternalClass extends ClassIssue
/** @param non-empty-list<non-empty-string> $words */
public static function listToPhrase(array $words): string
{
$words = array_unique($words);
if (count($words) === 1) {
return reset($words);
}
Expand Down

0 comments on commit 4807086

Please sign in to comment.