Skip to content

Commit

Permalink
Merge pull request #62 from JbalTero/master
Browse files Browse the repository at this point in the history
Resolves issue where only one of the pre/post update commands is executed
  • Loading branch information
codedge authored Oct 19, 2019
2 parents 2550130 + 1a13b05 commit e6bb34d
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 e6bb34d

Please sign in to comment.