File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed
src/Symfony/Component/HttpFoundation/Session/Storage/Handler Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -489,7 +489,7 @@ private function buildDsnFromUrl(string $dsnOrUrl): string
489
489
$ dsn = null ;
490
490
switch ($ driver ) {
491
491
case 'mysql ' :
492
- $ dsn ='mysql: ' ;
492
+ $ dsn = 'mysql: ' ;
493
493
if (isset ($ params ['query ' ]) && '' !== $ params ['query ' ]) {
494
494
$ queryParams = [];
495
495
parse_str ($ params ['query ' ], $ queryParams );
@@ -500,15 +500,16 @@ private function buildDsnFromUrl(string $dsnOrUrl): string
500
500
if (isset ($ queryParams ['unix_socket ' ]) && '' !== $ queryParams ['unix_socket ' ]) {
501
501
$ dsn .= 'unix_socket= ' .$ queryParams ['unix_socket ' ].'; ' ;
502
502
503
- if (isset ($ params ['path ' ])) {
503
+ if (isset ($ params ['path ' ])) {
504
504
$ dbName = substr ($ params ['path ' ], 1 ); // Remove the leading slash
505
505
$ dsn .= 'dbname= ' .$ dbName .'; ' ;
506
- }
506
+ }
507
507
508
- return $ dsn ;
508
+ return $ dsn ;
509
509
}
510
510
}
511
511
// If "unix_socket" is not in the query, we continue with the same process as pgsql
512
+ // no break
512
513
case 'pgsql ' :
513
514
$ dsn = $ dsn ?? 'pgsql: ' ;
514
515
You can’t perform that action at this time.
0 commit comments