krissss / yii2-web-msg-sender

Yii2 web msg sender with workerman
3 stars 1 forks source link

Unable to start worker in localhost? #3

Open i-internet opened 3 years ago

i-internet commented 3 years ago
$ php worker.php
----------------------- WORKERMAN -----------------------------
Workerman version:4.0.18          PHP version:7.3.15
------------------------ WORKERS -------------------------------
worker               listen                              processes status
PHPSocketIO          socketIO://0.0.0.0:2120             1         [ok]
PHP Fatal error:  Declaration of Workerman\Events\React\Base::cancelTimer(React\
EventLoop\TimerInterface $timer) must be compatible with React\EventLoop\LoopInt
erface::cancelTimer(React\EventLoop\Timer\TimerInterface $timer) in C:\xampp\htd
ocs\sms-website\vendor\workerman\workerman\Events\React\Base.php on line 24

Fatal error: Declaration of Workerman\Events\React\Base::cancelTimer(React\Event
Loop\TimerInterface $timer) must be compatible with React\EventLoop\LoopInterfac
e::cancelTimer(React\EventLoop\Timer\TimerInterface $timer) in C:\xampp\htdocs\s
ms-website\vendor\workerman\workerman\Events\React\Base.php on line 24
PHP Compile Error 'yii\base\ErrorException' with message 'Declaration of Workerm
an\Events\React\Base::cancelTimer(React\EventLoop\TimerInterface $timer) must be
 compatible with React\EventLoop\LoopInterface::cancelTimer(React\EventLoop\Time
r\TimerInterface $timer)'