Skip to content

Commit 23146b4

Browse files
HypeMCnicolas-grekas
authored andcommitted
[Cache][HttpFoundation][Lock] Fix empty username/password for PDO PostgreSQL
1 parent d6c1bf4 commit 23146b4

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

Store/PdoStore.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
*
2525
* Lock metadata are stored in a table. You can use createTable() to initialize
2626
* a correctly defined table.
27-
27+
*
2828
* CAUTION: This store relies on all client and server nodes to have
2929
* synchronized clocks for lock expiry to occur at the correct time.
3030
* To ensure locks don't expire prematurely; the TTLs should be set with enough
@@ -40,8 +40,8 @@ class PdoStore implements PersistingStoreInterface
4040
private $conn;
4141
private $dsn;
4242
private $driver;
43-
private $username = '';
44-
private $password = '';
43+
private $username = null;
44+
private $password = null;
4545
private $connectionOptions = [];
4646

4747
private $dbalStore;

Store/PostgreSqlStore.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ class PostgreSqlStore implements BlockingSharedLockStoreInterface, BlockingStore
2929
{
3030
private $conn;
3131
private $dsn;
32-
private $username = '';
33-
private $password = '';
32+
private $username = null;
33+
private $password = null;
3434
private $connectionOptions = [];
3535
private static $storeRegistry = [];
3636

0 commit comments

Comments
 (0)