thinkphp已经升级到6.0.8,但是top-think/think-swoole还是3.0,运行的时候出现错误:
Declaration of think\swoole\App::runningInConsole() must be compatible with think\App::runningInConsole(): bool
手工处理一下,把 vendor/topthink/think-swoole/src/App.php 文件中的runningInConsole方法添加一个返回值的类型就可以了:
public function runningInConsole(): bool
{
...
}