From 92dcf17360062bbb82b0f59302f923efe1b1b918 Mon Sep 17 00:00:00 2001 From: Tigrov Date: Mon, 29 Jan 2024 13:33:28 +0700 Subject: [PATCH] Fix psalm issues --- src/Dsn.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/Dsn.php b/src/Dsn.php index 56585ec41..1325189a7 100644 --- a/src/Dsn.php +++ b/src/Dsn.php @@ -23,8 +23,7 @@ public function __construct( string $port = '5432', array $options = [] ) { - /** @psalm-suppress RiskyTruthyFalsyComparison */ - if (empty($databaseName)) { + if ($databaseName === null || $databaseName === '') { $databaseName = 'postgres'; }