diff --git a/system/HTTP/IncomingRequest.php b/system/HTTP/IncomingRequest.php index 75d9f60233b0..08b97e23bdab 100755 --- a/system/HTTP/IncomingRequest.php +++ b/system/HTTP/IncomingRequest.php @@ -269,7 +269,7 @@ public function setLocale(string $locale) */ public function isCLI(): bool { - return (PHP_SAPI === 'cli' || defined('STDIN')); + return is_cli(); } //--------------------------------------------------------------------