File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change 1515 ],
1616 "require" : {
1717 "php" : " ^7.1" ,
18- "ext-swoole" : " >=1.9.3 || >=2.1.0" ,
1918 "illuminate/console" : " ~5.1" ,
2019 "illuminate/contracts" : " ~5.1" ,
2120 "illuminate/http" : " ~5.1" ,
Original file line number Diff line number Diff line change @@ -313,7 +313,9 @@ protected function isDaemon()
313313 protected function checkEnvironment ()
314314 {
315315 if (strtoupper (substr (PHP_OS , 0 , 3 )) === 'WIN ' ) {
316- throw new \RuntimeException ("Swoole extension doesn't support Windows OS yet " );
316+ throw new \RuntimeException ("Swoole extension doesn't support Windows OS yet. " );
317+ } elseif (! extension_loaded ('swoole ' )) {
318+ throw new \RuntimeException ("Can't detect Swoole extension installed. " );
317319 }
318320 }
319321}
You can’t perform that action at this time.
0 commit comments