hyperf/gotask

启动时gotask.args参数为空时

yzdzh opened this issue · 2 comments

yzdzh commented

image
image
启动时没设置gotask.args参数,会报错,这里默认gotask.args空数组,下面的array_push($argArr, ...$args)会默认没有第二个参数的

yzdzh commented

[ERROR] ArgumentCountError:array_push() expects at least 2 parameters, 1 given(0) in /home/wwwroot/messages/vendor/hyperf/gotask/src/Process/GoTaskProcess.php:80
Stack trace:

[ERROR] ArgumentCountError:array_push() expects at least 2 parameters, 1 given(0) in /home/wwwroot/messages/vendor/hyperf/gotask/src/Process/GoTaskProcess.php:80
Stack trace:

谢谢!