Skip to content

Commit 0d2a777

Browse files
committed
ErrorEmailer::isCli fix
1 parent dc1cf3c commit 0d2a777

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/ErrorEmailer.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,7 @@ protected function fileWrite($file, $str)
304304
*/
305305
protected static function isCli()
306306
{
307-
return \defined('STDIN') || isset($_SERVER['argv']) || !\array_key_exists('REQUEST_METHOD', $_SERVER);
307+
return \defined('STDIN') || isset($_SERVER['argv']) && \count($_SERVER['argv']) > 1 || !\array_key_exists('REQUEST_METHOD', $_SERVER);
308308
}
309309

310310
/**

0 commit comments

Comments
 (0)