diff --git a/dev/Helpers/CldrData.php b/dev/Helpers/CldrData.php index f018048ddd..f40a186a1c 100644 --- a/dev/Helpers/CldrData.php +++ b/dev/Helpers/CldrData.php @@ -49,7 +49,6 @@ public static function get(string $package, string $locale, string $key): mixed throw new InvalidArgumentException('Key should be in a dot notation.'); } - /** @psalm-suppress PossiblyUndefinedArrayOffset */ [$filename, $keys] = explode('.', $key, 2); $path = self::path($package, "{$locale}/{$filename}.json"); diff --git a/src/Formatters/LocaleData.php b/src/Formatters/LocaleData.php index 9792ec8b68..3ec65a2593 100644 --- a/src/Formatters/LocaleData.php +++ b/src/Formatters/LocaleData.php @@ -8,8 +8,6 @@ /** * @internal - * - * @psalm-suppress UnresolvableInclude */ final class LocaleData { @@ -89,8 +87,6 @@ private static function splitLocale(string $locale): array /** * @return list - * - * @psalm-suppress LessSpecificReturnStatement, MoreSpecificReturnType */ private static function getFiles(string $type, string $language): array { diff --git a/src/Formatters/Number/Options.php b/src/Formatters/Number/Options.php index ec84e27816..2e294cb01a 100644 --- a/src/Formatters/Number/Options.php +++ b/src/Formatters/Number/Options.php @@ -10,9 +10,6 @@ */ final class Options { - /** - * @psalm-suppress DocblockTypeContradiction - */ public function __construct( /** @var 'decimal'|'currency'|'percent'|'unit' */ public string $style = 'decimal', @@ -29,7 +26,6 @@ public function __construct( /** @var 'long'|'short'|'narrow' */ public string $unitDisplay = 'short', ) { - /** @psalm-suppress DocblockTypeContradiction */ if (! in_array($style, ['decimal', 'currency', 'percent', 'unit'], true)) { throw new InvalidArgumentException('Allowed styles are decimal, currency, percent and unit.'); } @@ -87,9 +83,6 @@ private function fillForSignificant(): void $this->maximumSignificantDigits ??= 21; } - /** - * @psalm-suppress PossiblyNullPropertyFetch - */ private function fillForOther(?Currency $currency): void { $this->minimumIntegerDigits ??= 1; diff --git a/src/Resolver/PatternResolver.php b/src/Resolver/PatternResolver.php index dd8e4581b4..ec4be0f2e8 100644 --- a/src/Resolver/PatternResolver.php +++ b/src/Resolver/PatternResolver.php @@ -39,7 +39,6 @@ public function __construct( /** @var array */ private array $arguments, ) { - /** @psalm-suppress PropertyTypeCoercion */ $this->dirty = new WeakMap(); $this->variantMatcher = new VariantMatcher($this->bundle->getLocale()); diff --git a/tests/Formatters/Number/NumberFormatterTestCase.php b/tests/Formatters/Number/NumberFormatterTestCase.php index 5df455235e..73ae7d6b1a 100644 --- a/tests/Formatters/Number/NumberFormatterTestCase.php +++ b/tests/Formatters/Number/NumberFormatterTestCase.php @@ -94,8 +94,6 @@ final public function testCorrectPatterns(): void } /** - * @psalm-suppress InvalidScalarArgument - * * @param O $options */ final protected static function assertNumberFormat( diff --git a/tests/Parser/CursorTest.php b/tests/Parser/CursorTest.php index feb0e2a1cc..7d522f8cee 100644 --- a/tests/Parser/CursorTest.php +++ b/tests/Parser/CursorTest.php @@ -459,7 +459,6 @@ public function testTake(): void private function cursor(string $string): Cursor { - /** @psalm-suppress InternalClass */ return new class ($string) extends Cursor { }; } } diff --git a/tests/TestCase.php b/tests/TestCase.php index 8a8bad6851..2815e09e19 100644 --- a/tests/TestCase.php +++ b/tests/TestCase.php @@ -11,7 +11,6 @@ abstract class TestCase extends BaseTestCase use AstAssertions; use TranslationAssertions; - /** @psalm-suppress MissingConstructor */ protected FluentBundle $bundle; protected function setUp(): void