From 9091ecfd3a59aa88d45134568552362245a4d9fb Mon Sep 17 00:00:00 2001 From: Guy Sartorelli <36352093+GuySartorelli@users.noreply.github.com> Date: Wed, 31 Jul 2024 12:55:22 +1200 Subject: [PATCH] ENH Don't use the keyword "self" (#11315) --- src/Core/Environment.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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']); }