Skip to content

Commit 52dbf70

Browse files
authored
Merge pull request #8034 from kenjis/fix-phpstan-ci-errors
fix: PHPStan errors
2 parents f6ce13b + 65b01f6 commit 52dbf70

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)