From 886bd2eca1dab7c371e197e670eb472e00be0fa1 Mon Sep 17 00:00:00 2001 From: "John Paul E. Balandan, CPA" Date: Sun, 6 Sep 2026 00:43:57 +0800 Subject: [PATCH] style: rerun rector on `4.8` --- system/Database/Config.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/system/Database/Config.php b/system/Database/Config.php index 899e214cc284..b9d4198790bd 100644 --- a/system/Database/Config.php +++ b/system/Database/Config.php @@ -61,9 +61,7 @@ public static function connect($group = null, bool $getShared = true) } else { $dbConfig = config(DbConfig::class); - if ($group === null) { - $group = service('environment')->isTesting() ? 'tests' : $dbConfig->defaultGroup; - } + $group ??= service('environment')->isTesting() ? 'tests' : $dbConfig->defaultGroup; assert(is_string($group));