diff --git a/src/Core/Environment.php b/src/Core/Environment.php index 5860971b7..0460c6022 100644 --- a/src/Core/Environment.php +++ b/src/Core/Environment.php @@ -258,8 +258,8 @@ class Environment */ public static function isCli() { - if (self::$isCliOverride !== null) { - return self::$isCliOverride; + if (Environment::$isCliOverride !== null) { + return Environment::$isCliOverride; } return in_array(strtolower(php_sapi_name() ?? ''), ['cli', 'phpdbg']); }