diff --git a/src/SourceRepository.php b/src/SourceRepository.php index 259cc37..b3dcb26 100644 --- a/src/SourceRepository.php +++ b/src/SourceRepository.php @@ -110,7 +110,7 @@ public function getVersionAvailable($prepend = '', $append = '') : string */ protected function preUpdateArtisanCommands() { - collect(config('self-update.artisan_commands.pre_update'))->every(function ($commandParams, $commandKey) { + collect(config('self-update.artisan_commands.pre_update'))->each(function ($commandParams, $commandKey) { Artisan::call($commandKey, $commandParams['params']); }); } @@ -120,7 +120,7 @@ protected function preUpdateArtisanCommands() */ protected function postUpdateArtisanCommands() { - collect(config('self-update.artisan_commands.post_update'))->every(function ($commandParams, $commandKey) { + collect(config('self-update.artisan_commands.post_update'))->each(function ($commandParams, $commandKey) { Artisan::call($commandKey, $commandParams['params']); }); }