Skip to content
This repository was archived by the owner on Mar 24, 2025. It is now read-only.

Commit b193a9a

Browse files
authored
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.
1 parent 29c6bfa commit b193a9a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Commands/HttpServerCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -370,7 +370,7 @@ protected function checkEnvironment()
370370
exit(1);
371371
}
372372

373-
if (! extension_loaded('swoole')) {
373+
if (! extension_loaded('swoole') && ! extension_loaded('openswoole')) {
374374
$this->error('Can\'t detect Swoole extension installed.');
375375

376376
exit(1);

0 commit comments

Comments
 (0)