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 3a306cc commit 87bac6a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Dsn.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public function asString(): string
}

/** @psalm-suppress RiskyTruthyFalsyComparison */
if (!empty($this->databaseName)) {
if ($this->databaseName !== null && $this->databaseName !== '') {
$dsn = "$this->driver:" . $server . "Database=$this->databaseName";
} else {
$dsn = "$this->driver:" . $server;
Expand Down

0 comments on commit 87bac6a

Please sign in to comment.