Skip to content

Commit

Permalink
Fix case when command not encrypted
Browse files Browse the repository at this point in the history
  • Loading branch information
willbrowningme committed Feb 21, 2021
1 parent 0e136df commit a78aa12
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/Illuminate/Queue/Console/RetryCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -136,9 +136,7 @@ protected function refreshRetryUntil($payload)

if (Str::startsWith($payload['data']['command'], 'O:')) {
$instance = unserialize($payload['data']['command']);
}

if (app()->bound(Encrypter::class)) {
} else if (app()->bound(Encrypter::class)) {
$instance = unserialize(app()->make(Encrypter::class)->decrypt($payload['data']['command']));
}

Expand Down

0 comments on commit a78aa12

Please sign in to comment.