ENH Don't use the keyword "self" (#11315)

This commit is contained in:
Guy Sartorelli 2024-07-31 12:55:22 +12:00 committed by GitHub
parent 6c3a4e26de
commit 9091ecfd3a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -258,8 +258,8 @@ class Environment
*/ */
public static function isCli() public static function isCli()
{ {
if (self::$isCliOverride !== null) { if (Environment::$isCliOverride !== null) {
return self::$isCliOverride; return Environment::$isCliOverride;
} }
return in_array(strtolower(php_sapi_name() ?? ''), ['cli', 'phpdbg']); return in_array(strtolower(php_sapi_name() ?? ''), ['cli', 'phpdbg']);
} }