Skip to content

Commit

Permalink
Resolves issue where only one fo the pre/post update commands are exe…
Browse files Browse the repository at this point in the history
…cuted.
  • Loading branch information
jbalatero committed Sep 8, 2019
1 parent 2550130 commit 1a13b05
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/SourceRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -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']);
});
}
Expand All @@ -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']);
});
}
Expand Down

0 comments on commit 1a13b05

Please sign in to comment.