Skip to content

Commit 8fa11fe

Browse files
committed
Update Psalm and remove fixed suppression
1 parent af0f769 commit 8fa11fe

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
"amphp/phpunit-util": "^3",
3232
"phpunit/phpunit": "^9",
3333
"amphp/php-cs-fixer-config": "^2",
34-
"psalm/phar": "^5.11"
34+
"psalm/phar": "^5.18"
3535
},
3636
"minimum-stability": "beta",
3737
"prefer-stable": true,

src/PostgresConfig.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ final class PostgresConfig extends SqlConfig
1717
'verify-full',
1818
];
1919

20-
/** @var array<non-empty-string, non-empty-string> Psalm has a bug with the spread operator. */
2120
public const KEY_MAP = [
2221
...parent::KEY_MAP,
2322
'ssl_mode' => 'sslmode',
@@ -29,7 +28,6 @@ final class PostgresConfig extends SqlConfig
2928

3029
public static function fromString(string $connectionString): self
3130
{
32-
/** @psalm-suppress InvalidArgument Psalm does not recognize {@see self::KEY_MAP} is in fact a map. */
3331
$parts = self::parseConnectionString($connectionString, self::KEY_MAP);
3432

3533
if (!isset($parts["host"])) {

0 commit comments

Comments
 (0)