Skip to content
This repository has been archived by the owner on Nov 2, 2020. It is now read-only.

Commit

Permalink
style(env): use $_ENV instead of getenv
Browse files Browse the repository at this point in the history
  • Loading branch information
Rhilip committed Sep 11, 2019
1 parent e6394a6 commit 2f5f0ac
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Framework/functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@ function app($prefix = null)
*/
function env($name = null, $default = '')
{
return getenv($name) ?? $default;
if ($name === null) return $_ENV;
return $_ENV[$name] ?? $default;
}
}

Expand Down

0 comments on commit 2f5f0ac

Please sign in to comment.