Skip to content

Commit

Permalink
Connection DSN can omit password (#971)
Browse files Browse the repository at this point in the history
  • Loading branch information
DarkSide666 committed Mar 2, 2022
1 parent f1ba4a1 commit fd25cb8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Persistence.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public static function connect($dsn, string $user = null, string $password = nul
case 'pdo_sqlsrv':
case 'pdo_oci':
case 'oci8':
$persistence = new Persistence\Sql($dsn, $dsn['user'], $dsn['password'], $args);
$persistence = new Persistence\Sql($dsn, $dsn['user'] ?? null, $dsn['password'] ?? null, $args);

return $persistence;
default:
Expand Down

0 comments on commit fd25cb8

Please sign in to comment.