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', []) ) ); }