From bf3f4bd87243c80b42f059d8f19db438ee03af55 Mon Sep 17 00:00:00 2001 From: EWake Date: Wed, 3 Apr 2019 17:07:39 +0200 Subject: [PATCH] Updated LOCAL_FIRST logic --- src/Env.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Env.php b/src/Env.php index 5d45d6e..477d361 100644 --- a/src/Env.php +++ b/src/Env.php @@ -38,8 +38,8 @@ public static function get($name) { if (self::$options & self::USE_ENV_ARRAY) { $value = isset($_ENV[$name]) ? $_ENV[$name] : false; - } elseif ((self::$options & self::LOCAL_FIRST) && ($value = getenv($name, true)) !== false) { - + } elseif ((self::$options & self::LOCAL_FIRST)) { + $value = getenv($name, true) ?: getenv($name); } else { $value = getenv($name); }