Skip to content

Commit 1a6d2a9

Browse files
committed
Merge remote-tracking branch 'upstream/develop' into 4.5
2 parents 8ad55e3 + 52dbf70 commit 1a6d2a9

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

phpstan.neon.dist

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,3 +38,8 @@ parameters:
3838
booleansInConditions: true
3939
disallowedConstructs: true
4040
matchingInheritedMethodNames: true
41+
ignoreErrors:
42+
- '#^Call to function config with Config\\.+\:\:class is discouraged\.$#'
43+
codeigniter:
44+
additionalConfigNamespaces:
45+
- CodeIgniter\Config\

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)