From 2eafbf97628eec5ceff9aacd78caf52e18cb609b Mon Sep 17 00:00:00 2001 From: Andrew Winter Date: Mon, 8 Apr 2024 11:40:08 +0900 Subject: [PATCH] Fix A void function must not return a value error --- src/Console/InstallCommand.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/Console/InstallCommand.php b/src/Console/InstallCommand.php index 4cf1d17..7b5217c 100644 --- a/src/Console/InstallCommand.php +++ b/src/Console/InstallCommand.php @@ -8,7 +8,7 @@ class InstallCommand extends Command { protected $signature = 'meta-tags:install'; - + protected $description = 'Install all of the MetaTags package resources'; public function handle(): void @@ -35,7 +35,8 @@ protected function registerServiceProvider(): void if (file_exists($this->getLaravel()->bootstrapPath('providers.php'))) { // @phpstan-ignore-next-line - return ServiceProvider::addProviderToBootstrapFile("{$namespace}\\Providers\\MetaTagsServiceProvider"); + ServiceProvider::addProviderToBootstrapFile("{$namespace}\\Providers\\MetaTagsServiceProvider"); + return; } /** @psalm-suppress UndefinedFunction */