Closed aaaanker closed 2 years ago
use \Workerman\Lib\Timer;
\Workerman\Lib\Timer; 是很老版本 workerman的用法
我从composer 下载的 workerman/mqtt 1.2,里面的Workerman的Timer.php命名空间是 namespace Workerman\Lib;,mqtt的client.php 是 use \Workerman\Timer,报错找不到Timer.php,可能是composer的问题吧
use \Workerman\Lib\Timer;