Skip to content

Commit

Permalink
fix: Restore check helpers
Browse files Browse the repository at this point in the history
  • Loading branch information
neznaika0 committed Nov 9, 2024
1 parent 3cccee5 commit fbf8c9a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions phpstan-baseline.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,12 @@
'count' => 1,
'path' => __DIR__ . '/app/Config/Filters.php',
];
$ignoreErrors[] = [
// identifier: isset.property
'message' => '#^Property Config\\\\Autoload\\:\\:\\$helpers \\(array\\<int, string\\>\\) in isset\\(\\) is not nullable\\.$#',
'count' => 1,
'path' => __DIR__ . '/system/Autoloader/Autoloader.php',
];
$ignoreErrors[] = [
// identifier: missingType.iterableValue
'message' => '#^Method CodeIgniter\\\\BaseModel\\:\\:__call\\(\\) has parameter \\$params with no value type specified in iterable type array\\.$#',
Expand Down
2 changes: 1 addition & 1 deletion system/Autoloader/Autoloader.php
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ public function initialize(Autoload $config, Modules $modules)
$this->files = $config->files;
}

if ($config->helpers !== []) {
if (isset($config->helpers)) {
$this->helpers = [...$this->helpers, ...$config->helpers];
}

Expand Down

0 comments on commit fbf8c9a

Please sign in to comment.