Skip to content

Commit

Permalink
Merge pull request #10241 from kkmuffme/remove-duplicate-namespace-in…
Browse files Browse the repository at this point in the history
…-internal-method-error

Remove duplicate namespace in InternalMethod error message
  • Loading branch information
orklah committed Oct 2, 2023
2 parents c67dce7 + 1306b62 commit 3a8f2d2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Psalm/Issue/InternalClass.php
Expand Up @@ -3,6 +3,7 @@
namespace Psalm\Issue;

use function array_pop;
use function array_unique;
use function count;
use function implode;
use function reset;
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 3a8f2d2

Please sign in to comment.