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