From 65b01f61c94628ddc1af6959d2036a84709af194 Mon Sep 17 00:00:00 2001 From: kenjis Date: Thu, 12 Oct 2023 11:39:35 +0900 Subject: [PATCH] fix: incorrect class name If we specifies FQCN, Config\Factory is not loaded since CI v4.4.0. --- system/Config/Factories.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/system/Config/Factories.php b/system/Config/Factories.php index b455969049e2..a32df02725ac 100644 --- a/system/Config/Factories.php +++ b/system/Config/Factories.php @@ -377,7 +377,7 @@ public static function getOptions(string $component): array // Handle Config as a special case to prevent logic loops ? self::$configOptions // Load values from the best Factory configuration (will include Registrars) - : config(Factory::class)->{$component} ?? []; + : config('Factory')->{$component} ?? []; // The setOptions() reset the component. So getOptions() may reset // the component.