Skip to content

Commit

Permalink
Support sapi micro
Browse files Browse the repository at this point in the history
  • Loading branch information
walkor committed Aug 9, 2023
1 parent 13fa5e1 commit f7c9667
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Worker.php
Original file line number Diff line number Diff line change
Expand Up @@ -569,8 +569,8 @@ public static function runAll()
*/
protected static function checkSapiEnv()
{
// Only for cli.
if (\PHP_SAPI !== 'cli') {
// Only for cli and micro.
if (!in_array(\PHP_SAPI, ['cli', 'micro'])) {
exit("Only run in command line mode \n");
}
if (\DIRECTORY_SEPARATOR === '\\') {
Expand Down

0 comments on commit f7c9667

Please sign in to comment.