You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 749fb74
Browse filesBrowse the repository at this point in the historyBrowse files
thrownew \LogicException('The config must be either an array of options, a DSN string or null');
44
47
}
@@ -74,18 +77,16 @@ public static function parseDsn(string $dsn): array
74
77
'mongodb' => true,
75
78
];
76
79
if (false == isset($parsedUrl['scheme'])) {
77
-
thrownew \LogicException(sprintf(
78
-
'The given DSN schema "%s" is not supported. There are supported schemes: "%s".',
79
-
$parsedUrl['scheme'],
80
-
implode('", "', array_keys($supported))
81
-
));
80
+
thrownew \LogicException(sprintf('The given DSN schema "%s" is not supported. There are supported schemes: "%s".', $parsedUrl['scheme'], implode('", "', array_keys($supported))));
82
81
}
83
82
if ('mongodb:' === $dsn) {
84
83
return [
85
84
'dsn' => 'mongodb://127.0.0.1/',
86
85
];
87
86
}
88
87
$config['dsn'] = $dsn;
88
+
// FIXME this is NOT a dbname but rather authdb. But removing this would be a BC break.
0 commit comments