From cc32ecb641d5c05a5a485b83220cd30c0f88b51a Mon Sep 17 00:00:00 2001 From: Sergei Predvoditelev Date: Wed, 25 Dec 2024 11:50:49 +0300 Subject: [PATCH] Fix psalm errors (#145) --- src/SimpleMessageFormatter.php | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/SimpleMessageFormatter.php b/src/SimpleMessageFormatter.php index e6f5538..cab22d6 100644 --- a/src/SimpleMessageFormatter.php +++ b/src/SimpleMessageFormatter.php @@ -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