diff --git a/src/Dsn.php b/src/Dsn.php index b786aff1..99c456fd 100644 --- a/src/Dsn.php +++ b/src/Dsn.php @@ -45,7 +45,8 @@ public function asString(): string $server = "Server=$this->host;"; } - if ($this->databaseName !== null) { + /** @psalm-suppress RiskyTruthyFalsyComparison */ + if (!empty($this->databaseName)) { $dsn = "$this->driver:" . $server . "Database=$this->databaseName"; } else { $dsn = "$this->driver:" . $server;