Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

启动时gotask.args参数为空时 #14

Closed
yzdzh opened this issue May 12, 2020 · 2 comments
Closed

启动时gotask.args参数为空时 #14

yzdzh opened this issue May 12, 2020 · 2 comments

Comments

@yzdzh
Copy link

yzdzh commented May 12, 2020

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

@yzdzh
Copy link
Author

yzdzh commented May 12, 2020

[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:

@Reasno
Copy link
Member

Reasno commented May 12, 2020

[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:

谢谢!

@Reasno Reasno closed this as completed in 72ac8d0 May 12, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants