Skip to content

Commit

Permalink
Merge branch '5.4' into 6.3
Browse files Browse the repository at this point in the history
* 5.4:
  fix compatibility with Doctrine DBAL 4
  ensure string type with mbstring func overloading enabled
  [Validator] updated Greek translation
  [Cache][HttpFoundation][Lock] Fix empty username/password for PDO PostgreSQL
  • Loading branch information
nicolas-grekas committed Nov 7, 2023
2 parents 59d1837 + f84fd4f commit ce33267
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion HeaderUtils.php
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ public static function parseQuery(string $query, bool $ignoreBrackets = false, s
private static function groupParts(array $matches, string $separators, bool $first = true): array
{
$separator = $separators[0];
$separators = substr($separators, 1);
$separators = substr($separators, 1) ?: '';
$i = 0;

if ('' === $separators && !$first) {
Expand Down
4 changes: 2 additions & 2 deletions Session/Storage/Handler/PdoSessionHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -90,12 +90,12 @@ class PdoSessionHandler extends AbstractSessionHandler
/**
* Username when lazy-connect.
*/
private string $username = '';
private ?string $username = null;

/**
* Password when lazy-connect.
*/
private string $password = '';
private ?string $password = null;

/**
* Connection options when lazy-connect.
Expand Down

0 comments on commit ce33267

Please sign in to comment.