Skip to content

Commit

Permalink
Updated LOCAL_FIRST logic
Browse files Browse the repository at this point in the history
  • Loading branch information
ewake committed Apr 3, 2019
1 parent 6ee7492 commit bf3f4bd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Env.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit bf3f4bd

Please sign in to comment.