Skip to content

Commit fbf8c9a

Browse files
committed
fix: Restore check helpers
1 parent 3cccee5 commit fbf8c9a

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

phpstan-baseline.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,12 @@
77
'count' => 1,
88
'path' => __DIR__ . '/app/Config/Filters.php',
99
];
10+
$ignoreErrors[] = [
11+
// identifier: isset.property
12+
'message' => '#^Property Config\\\\Autoload\\:\\:\\$helpers \\(array\\<int, string\\>\\) in isset\\(\\) is not nullable\\.$#',
13+
'count' => 1,
14+
'path' => __DIR__ . '/system/Autoloader/Autoloader.php',
15+
];
1016
$ignoreErrors[] = [
1117
// identifier: missingType.iterableValue
1218
'message' => '#^Method CodeIgniter\\\\BaseModel\\:\\:__call\\(\\) has parameter \\$params with no value type specified in iterable type array\\.$#',

system/Autoloader/Autoloader.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ public function initialize(Autoload $config, Modules $modules)
123123
$this->files = $config->files;
124124
}
125125

126-
if ($config->helpers !== []) {
126+
if (isset($config->helpers)) {
127127
$this->helpers = [...$this->helpers, ...$config->helpers];
128128
}
129129

0 commit comments

Comments
 (0)