From b193a9a899df929029357524803a02b17d6fee6d Mon Sep 17 00:00:00 2001 From: Nahid Bin Azhar Date: Thu, 4 Nov 2021 12:58:33 +0600 Subject: [PATCH] Added openswoole extension check compatibility Swoole now became `openswoole`, from version 4.7.2 swoole extension changed as openswoole. For this reason, this package can not detect the extension and shows the message *Can't detect Swoole extension installed.* This commit fixed the issue. --- src/Commands/HttpServerCommand.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Commands/HttpServerCommand.php b/src/Commands/HttpServerCommand.php index ff074a5..7412727 100644 --- a/src/Commands/HttpServerCommand.php +++ b/src/Commands/HttpServerCommand.php @@ -370,7 +370,7 @@ protected function checkEnvironment() exit(1); } - if (! extension_loaded('swoole')) { + if (! extension_loaded('swoole') && ! extension_loaded('openswoole')) { $this->error('Can\'t detect Swoole extension installed.'); exit(1);