Merge branch '5' into 6

This commit is contained in:
github-actions 2024-07-31 00:59:59 +00:00
commit a7a431d366

View File

@ -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']);
}