Skip to content

Commit 1a13b05

Browse files
committed
Resolves issue where only one fo the pre/post update commands are executed.
1 parent 2550130 commit 1a13b05

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/SourceRepository.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ public function getVersionAvailable($prepend = '', $append = '') : string
110110
*/
111111
protected function preUpdateArtisanCommands()
112112
{
113-
collect(config('self-update.artisan_commands.pre_update'))->every(function ($commandParams, $commandKey) {
113+
collect(config('self-update.artisan_commands.pre_update'))->each(function ($commandParams, $commandKey) {
114114
Artisan::call($commandKey, $commandParams['params']);
115115
});
116116
}
@@ -120,7 +120,7 @@ protected function preUpdateArtisanCommands()
120120
*/
121121
protected function postUpdateArtisanCommands()
122122
{
123-
collect(config('self-update.artisan_commands.post_update'))->every(function ($commandParams, $commandKey) {
123+
collect(config('self-update.artisan_commands.post_update'))->each(function ($commandParams, $commandKey) {
124124
Artisan::call($commandKey, $commandParams['params']);
125125
});
126126
}

0 commit comments

Comments
 (0)