derp
This commit is contained in:
parent
fc6bb2d1b5
commit
bf9b47510a
1 changed files with 1 additions and 6 deletions
|
@ -23,12 +23,7 @@ function _d(string $name, mixed $value): void
|
|||
if (!defined($name)) {
|
||||
$env = getenv("SHM_{$name}");
|
||||
if ($env !== false) {
|
||||
try {
|
||||
$value = json_decode($env);
|
||||
}
|
||||
catch(\Exception $e) {
|
||||
$value = $env;
|
||||
}
|
||||
$value = json_decode($env) ?? $env;
|
||||
}
|
||||
define($name, $value);
|
||||
}
|
||||
|
|
Reference in a new issue