Skip to content

Commit 65b01f6

Browse files
committed
fix: incorrect class name
If we specifies FQCN, Config\Factory is not loaded since CI v4.4.0.
1 parent b26809f commit 65b01f6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

system/Config/Factories.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -377,7 +377,7 @@ public static function getOptions(string $component): array
377377
// Handle Config as a special case to prevent logic loops
378378
? self::$configOptions
379379
// Load values from the best Factory configuration (will include Registrars)
380-
: config(Factory::class)->{$component} ?? [];
380+
: config('Factory')->{$component} ?? [];
381381

382382
// The setOptions() reset the component. So getOptions() may reset
383383
// the component.

0 commit comments

Comments
 (0)