Skip to content

Commit

Permalink
Merge pull request #997 from tourze/patch-1
Browse files Browse the repository at this point in the history
Fix error when unserialize return false
  • Loading branch information
walkor authored Jan 12, 2024
2 parents 7beb1e4 + 0078149 commit 14099e0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Worker.php
Original file line number Diff line number Diff line change
Expand Up @@ -1142,6 +1142,9 @@ protected static function formatProcessStatusData(): string
} catch (Throwable) {
// do nothing
}
if (!is_array($workerInfo)) {
$workerInfo = [];
}
ksort($workerInfo, SORT_NUMERIC);
unset($info[0]);
$dataWaitingSort = [];
Expand Down

0 comments on commit 14099e0

Please sign in to comment.