Skip to content

Commit a91e35d

Browse files
authored
style: rerun rector on 4.8 (#10525)
1 parent 38c7abf commit a91e35d

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

‎system/Database/Config.php‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,9 +61,7 @@ public static function connect($group = null, bool $getShared = true)
6161
} else {
6262
$dbConfig = config(DbConfig::class);
6363

64-
if ($group === null) {
65-
$group = service('environment')->isTesting() ? 'tests' : $dbConfig->defaultGroup;
66-
}
64+
$group ??= service('environment')->isTesting() ? 'tests' : $dbConfig->defaultGroup;
6765

6866
assert(is_string($group));
6967

0 commit comments

Comments
 (0)