From dc94e65c447bdce716e0d1cfea97f53604ec5164 Mon Sep 17 00:00:00 2001 From: Jura Khrapunov Date: Fri, 20 Oct 2023 19:27:10 -0400 Subject: [PATCH] CLI-1171: updated env variable testing condition --- src/Helpers/LocalMachineHelper.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Helpers/LocalMachineHelper.php b/src/Helpers/LocalMachineHelper.php index e6fd68db5..56c286822 100644 --- a/src/Helpers/LocalMachineHelper.php +++ b/src/Helpers/LocalMachineHelper.php @@ -223,7 +223,7 @@ public static function getHomeDir(): string { $home = getenv('HOME'); if (!$home) { $system = ''; - if (getenv('MSYSTEM') !== NULL) { + if (getenv('MSYSTEM')) { $system = strtoupper(substr(getenv('MSYSTEM'), 0, 4)); } if ($system !== 'MING') {