Skip to content

Commit

Permalink
Improve static analysis
Browse files Browse the repository at this point in the history
  • Loading branch information
staudenmeir committed Sep 29, 2024
1 parent 0b11235 commit 0a4ccc3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/IdeHelperServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public function register(): void
}

/**
* @return list<class-string>
* @return list<class-string<\Illuminate\Console\Command>>
*/
public function provides(): array
{
Expand All @@ -33,7 +33,7 @@ public function provides(): array

protected function registerIdeHelperHook(): void
{
/** @var \Illuminate\Contracts\Config\Repository $config */
/** @var \Illuminate\Config\Repository $config */
$config = $this->app->get('config');

if (!$config->get('eloquent-has-many-deep.ide_helper_enabled')) {
Expand All @@ -44,7 +44,7 @@ protected function registerIdeHelperHook(): void
'ide-helper.model_hooks',
array_merge(
[DeepRelationsHook::class],
(array) $config->get('ide-helper.model_hooks', [])
$config->array('ide-helper.model_hooks', [])
)
);
}
Expand Down

0 comments on commit 0a4ccc3

Please sign in to comment.