Skip to content

Commit

Permalink
[Cache][HttpFoundation][Lock] Fix empty username/password for PDO Pos…
Browse files Browse the repository at this point in the history
…tgreSQL
  • Loading branch information
HypeMC authored and nicolas-grekas committed Nov 6, 2023
1 parent d6c1bf4 commit 23146b4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions Store/PdoStore.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
*
* Lock metadata are stored in a table. You can use createTable() to initialize
* a correctly defined table.
*
* CAUTION: This store relies on all client and server nodes to have
* synchronized clocks for lock expiry to occur at the correct time.
* To ensure locks don't expire prematurely; the TTLs should be set with enough
Expand All @@ -40,8 +40,8 @@ class PdoStore implements PersistingStoreInterface
private $conn;
private $dsn;
private $driver;
private $username = '';
private $password = '';
private $username = null;
private $password = null;
private $connectionOptions = [];

private $dbalStore;
Expand Down
4 changes: 2 additions & 2 deletions Store/PostgreSqlStore.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ class PostgreSqlStore implements BlockingSharedLockStoreInterface, BlockingStore
{
private $conn;
private $dsn;
private $username = '';
private $password = '';
private $username = null;
private $password = null;
private $connectionOptions = [];
private static $storeRegistry = [];

Expand Down

0 comments on commit 23146b4

Please sign in to comment.