From 0a4ccc39b33b7d1ee41777ec0482b638cb20966c Mon Sep 17 00:00:00 2001 From: Jonas Staudenmeir Date: Sun, 29 Sep 2024 14:53:29 +0200 Subject: [PATCH] Improve static analysis --- src/IdeHelperServiceProvider.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/IdeHelperServiceProvider.php b/src/IdeHelperServiceProvider.php index 5336858..24e3883 100644 --- a/src/IdeHelperServiceProvider.php +++ b/src/IdeHelperServiceProvider.php @@ -22,7 +22,7 @@ public function register(): void } /** - * @return list + * @return list> */ public function provides(): array { @@ -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')) { @@ -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', []) ) ); }