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 ff57ccd commit 92dcf17
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/Dsn.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,7 @@ public function __construct(
string $port = '5432',
array $options = []
) {
/** @psalm-suppress RiskyTruthyFalsyComparison */
if (empty($databaseName)) {
if ($databaseName === null || $databaseName === '') {
$databaseName = 'postgres';
}

Expand Down

0 comments on commit 92dcf17

Please sign in to comment.