Skip to content

Commit

Permalink
Update Psalm and remove fixed suppression
Browse files Browse the repository at this point in the history
  • Loading branch information
trowski committed Dec 17, 2023
1 parent af0f769 commit 8fa11fe
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 0 additions & 2 deletions src/PostgresConfig.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ final class PostgresConfig extends SqlConfig
'verify-full',
];

/** @var array<non-empty-string, non-empty-string> Psalm has a bug with the spread operator. */
public const KEY_MAP = [
...parent::KEY_MAP,
'ssl_mode' => 'sslmode',
Expand All @@ -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"])) {
Expand Down

0 comments on commit 8fa11fe

Please sign in to comment.