Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 5c67a6e

Browse filesBrowse files
committed
[Cache][HttpFoundation][Lock] Fix empty username/password for PDO PostgreSQL
1 parent 58353d1 commit 5c67a6e
Copy full SHA for 5c67a6e

File tree

Expand file treeCollapse file tree

4 files changed

+10
-10
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

4 files changed

+10
-10
lines changed
Open diff view settings
Collapse file

‎src/Symfony/Component/Cache/Adapter/PdoAdapter.php‎

Copy file name to clipboardExpand all lines: src/Symfony/Component/Cache/Adapter/PdoAdapter.php
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@ class PdoAdapter extends AbstractAdapter implements PruneableInterface
3434
private $dataCol = 'item_data';
3535
private $lifetimeCol = 'item_lifetime';
3636
private $timeCol = 'item_time';
37-
private $username = '';
38-
private $password = '';
37+
private $username = null;
38+
private $password = null;
3939
private $connectionOptions = [];
4040
private $namespace;
4141

Collapse file

‎src/Symfony/Component/HttpFoundation/Session/Storage/Handler/PdoSessionHandler.php‎

Copy file name to clipboardExpand all lines: src/Symfony/Component/HttpFoundation/Session/Storage/Handler/PdoSessionHandler.php
+4-4Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -112,16 +112,16 @@ class PdoSessionHandler extends AbstractSessionHandler
112112
/**
113113
* Username when lazy-connect.
114114
*
115-
* @var string
115+
* @var string|null
116116
*/
117-
private $username = '';
117+
private $username = null;
118118

119119
/**
120120
* Password when lazy-connect.
121121
*
122-
* @var string
122+
* @var string|null
123123
*/
124-
private $password = '';
124+
private $password = null;
125125

126126
/**
127127
* Connection options when lazy-connect.
Collapse file

‎src/Symfony/Component/Lock/Store/PdoStore.php‎

Copy file name to clipboardExpand all lines: src/Symfony/Component/Lock/Store/PdoStore.php
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -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;
Collapse file

‎src/Symfony/Component/Lock/Store/PostgreSqlStore.php‎

Copy file name to clipboardExpand all lines: src/Symfony/Component/Lock/Store/PostgreSqlStore.php
+2-2Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.