We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9c5275e commit 90ad66fCopy full SHA for 90ad66f
1 file changed
system/Database/Config.php
@@ -60,7 +60,7 @@ public static function connect($group = null, bool $getShared = true)
60
$dbConfig = config('Database');
61
62
if ($group === null) {
63
- $group = ENVIRONMENT === 'testing' ? 'tests' : $dbConfig->defaultGroup;
+ $group = (ENVIRONMENT === 'testing') ? 'tests' : $dbConfig->defaultGroup;
64
}
65
66
if (is_string($group) && ! isset($dbConfig->{$group}) && strpos($group, 'custom-') !== 0) {
0 commit comments