mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
ENH Don't use the keyword "self" (#11315)
This commit is contained in:
parent
6c3a4e26de
commit
9091ecfd3a
@ -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']);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user