Skip to content

Commit

Permalink
ENH Don't use the keyword "self"
Browse files Browse the repository at this point in the history
  • Loading branch information
GuySartorelli committed Jul 29, 2024
1 parent 1c77aa9 commit c1b4e71
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Core/Environment.php
Original file line number Diff line number Diff line change
Expand Up @@ -258,8 +258,8 @@ public static function hasEnv(string $name): bool
*/
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']);
}
Expand Down

0 comments on commit c1b4e71

Please sign in to comment.