Skip to content

Commit 030512e

Browse files
committed
Refactor Dsn class
1 parent 14b4bd8 commit 030512e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Dsn.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@
1414
final class Dsn extends AbstractDsn
1515
{
1616
/**
17-
* @psalm-param string[] $options
17+
* @psalm-param array<string,string> $options
1818
*/
1919
public function __construct(
20-
string $driver,
21-
string $host,
20+
string $driver = 'pgsql',
21+
string $host = 'localhost',
2222
string|null $databaseName = 'postgres',
2323
string $port = '5432',
2424
array $options = []

0 commit comments

Comments
 (0)