Merge pull request #10075 from annando/fix-warning

Fixes PHP Warning: " array_unshift() expects parameter 1 to be array, int given"
This commit is contained in:
Hypolite Petovan 2021-03-24 16:07:11 -04:00 committed by GitHub
commit 2ef0cd91c5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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']);
}