Skip to content

Commit

Permalink
Compatible with swoole version 6.0 (#7206)
Browse files Browse the repository at this point in the history
  • Loading branch information
limingxinleo authored Dec 13, 2024
1 parent 1dd5620 commit 959ea68
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,6 @@ function run($callbacks, int $flags = SWOOLE_HOOK_ALL): bool
/* @phpstan-ignore-next-line */
$result = \Swoole\Coroutine\run(...(array) $callbacks);

Runtime::enableCoroutine(false);
Runtime::enableCoroutine(0);
return $result;
}

0 comments on commit 959ea68

Please sign in to comment.