From 8fa11fe011dd96130bb59bc607bd79c15e55f89e Mon Sep 17 00:00:00 2001 From: Aaron Piotrowski Date: Sun, 17 Dec 2023 10:35:02 -0600 Subject: [PATCH] Update Psalm and remove fixed suppression --- composer.json | 2 +- src/PostgresConfig.php | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/composer.json b/composer.json index 140bb42..ad9b210 100644 --- a/composer.json +++ b/composer.json @@ -31,7 +31,7 @@ "amphp/phpunit-util": "^3", "phpunit/phpunit": "^9", "amphp/php-cs-fixer-config": "^2", - "psalm/phar": "^5.11" + "psalm/phar": "^5.18" }, "minimum-stability": "beta", "prefer-stable": true, diff --git a/src/PostgresConfig.php b/src/PostgresConfig.php index 8ba5da0..7d5243b 100644 --- a/src/PostgresConfig.php +++ b/src/PostgresConfig.php @@ -17,7 +17,6 @@ final class PostgresConfig extends SqlConfig 'verify-full', ]; - /** @var array Psalm has a bug with the spread operator. */ public const KEY_MAP = [ ...parent::KEY_MAP, 'ssl_mode' => 'sslmode', @@ -29,7 +28,6 @@ final class PostgresConfig extends SqlConfig public static function fromString(string $connectionString): self { - /** @psalm-suppress InvalidArgument Psalm does not recognize {@see self::KEY_MAP} is in fact a map. */ $parts = self::parseConnectionString($connectionString, self::KEY_MAP); if (!isset($parts["host"])) {