easy-swoole / hot-reload

auto hot reload manager
5 stars 3 forks source link

ext-swoole >=4.6 PHP Deprecated: Swoole\Event::rshutdown(): Event::wait() in shutdown function is deprecated in Unknown on line 0 #3

Open getchu opened 3 years ago

getchu commented 3 years ago

PHP 7.4 easyswoole/easyswoole 3.4.2 ext-swoole 4.6.x ext-inotify 3

PHP Deprecated: Swoole\Event::rshutdown(): Event::wait() in shutdown function is deprecated in Unknown on line 0

    private static function hostReload(){
        if (Core::getInstance()->runMode() === 'dev'){
            $hotReloadOptions = new \EasySwoole\HotReload\HotReloadOptions;
            $hotReloadOptions->setMonitorFolder([EASYSWOOLE_ROOT . '/App']);
            $hotReload = new \EasySwoole\HotReload\HotReload($hotReloadOptions);
            $server = ServerManager::getInstance()->getSwooleServer();
            $hotReload->attachToServer($server);
        }
    }
feifeiaini1 commented 3 years ago

我也遇到同样的问题,不知道解决没

Player626 commented 3 years ago

swoole4.6+废弃的功能.建议使用swoole4.4.23