Skip to content

Commit 9c5275e

Browse files
committed
refactor: replace empty()
1 parent fc96a6e commit 9c5275e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

system/Database/Config.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ public static function connect($group = null, bool $getShared = true)
5959
/** @var DbConfig $dbConfig */
6060
$dbConfig = config('Database');
6161

62-
if (empty($group)) {
62+
if ($group === null) {
6363
$group = ENVIRONMENT === 'testing' ? 'tests' : $dbConfig->defaultGroup;
6464
}
6565

0 commit comments

Comments
 (0)