Skip to content

Commit 550e61b

Browse files
committed
env2
1 parent 4133a0f commit 550e61b

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

.vortex/installer/src/Utils/Env.php

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,7 @@ class Env {
1818
public static function get(string $name, mixed $default = NULL): mixed {
1919
$vars = getenv();
2020

21-
if ($vars === FALSE) {
22-
return $default;
23-
}
24-
25-
return !isset($vars[$name]) ? $default : $vars[$name];
21+
return $vars[$name] ?? $default;
2622
}
2723

2824
public static function put(string $name, string $value): void {

0 commit comments

Comments
 (0)