From adb0b460ef8d2f133369b4b0732688ce4ab282bc Mon Sep 17 00:00:00 2001 From: Michael Date: Wed, 24 Mar 2021 19:52:53 +0000 Subject: [PATCH] Fixes PHP Warning: " array_unshift() expects parameter 1 to be array, int given" --- src/Core/Worker.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Core/Worker.php b/src/Core/Worker.php index 56c62451b9..21140b890e 100644 --- a/src/Core/Worker.php +++ b/src/Core/Worker.php @@ -311,6 +311,10 @@ class Worker } $argv = json_decode($queue['parameter'], true); + if (!is_array($argv)) { + $argv = []; + } + if (!empty($queue['command'])) { array_unshift($argv, $queue['command']); }