Skip to content

Commit

Permalink
Fix psalm errors (#145)
Browse files Browse the repository at this point in the history
  • Loading branch information
vjik authored Dec 25, 2024
1 parent e59fd6c commit cc32ecb
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/SimpleMessageFormatter.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,19 @@

class SimpleMessageFormatter implements MessageFormatterInterface
{
/**
* @psalm-suppress MissingClassConstType
*/
private const PLURAL_ONE = 'one';

/**
* @psalm-suppress MissingClassConstType
*/
private const PLURAL_OTHER = 'other';

/**
* @psalm-suppress MissingClassConstType
*/
private const PLURAL_KEYS = [self::PLURAL_ONE, self::PLURAL_OTHER];

public function format(string $message, array $parameters, string $locale = 'en-US'): string
Expand Down

0 comments on commit cc32ecb

Please sign in to comment.