Skip to content

Commit

Permalink
Fix psalm issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Tigrov committed Jan 29, 2024
1 parent 8da62b7 commit 3a306cc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Dsn.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 3a306cc

Please sign in to comment.