easy-swoole / easyswoole

swoole,easyswoole,swoole framework
https://www.easyswoole.com/
Apache License 2.0
4.73k stars 512 forks source link

Swoole\Coroutine\Client::connect(): Passing null to parameter #2 ($port) of type int is deprecated #541

Closed LOVE2CMOL closed 2 years ago

LOVE2CMOL commented 2 years ago

日志里面执行Task的时候一直在报这个notice是怎么回事呢?怎么去掉?

[2022-04-03 18:46:02][trigger][notice]:[Swoole\Coroutine\Client::connect(): Passing null to parameter #2 ($port) of type int is deprecated at file:/mnt/SSD1/wwwroot/MyProject/dist/server/easyswoole/vendor/easyswoole/task/src/UnixClient.php line:25]
[2022-04-03 18:46:02][trigger][notice]:[Swoole\Coroutine\Client::connect(): Passing null to parameter #2 ($port) of type int is deprecated at file:/mnt/SSD1/wwwroot/MyProject/dist/server/easyswoole/vendor/easyswoole/task/src/UnixClient.php line:25]
[2022-04-03 18:46:02][trigger][notice]:[Swoole\Coroutine\Client::connect(): Passing null to parameter #2 ($port) of type int is deprecated at file:/mnt/SSD1/wwwroot/MyProject/dist/server/easyswoole/vendor/easyswoole/task/src/UnixClient.php line:25]

swoole version 4.8.5 php version 8.1.3 easyswoole version 3.5.1

plbeast commented 2 years ago

I have met the sam problem.

LOVE2CMOL commented 2 years ago

I have met the sam problem.

Temporary workaround LOG->ignoreCategory->['trigger'] image 🤣🤣

kiss291323003 commented 2 years ago

swoole先降级到4.4.23