From 2aaf8e978538af6f4b069344076b5923f3a0a268 Mon Sep 17 00:00:00 2001 From: myteril Date: Tue, 1 Oct 2024 14:04:30 +0300 Subject: [PATCH] Remove `getenv()` which is not thread safe --- src/functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/functions.php b/src/functions.php index 6eef223..c05279c 100755 --- a/src/functions.php +++ b/src/functions.php @@ -29,7 +29,7 @@ function app(): Leaf\App */ function _env($key, $default = null) { - $env = array_merge(getenv() ?? [], $_ENV ?? []); + $env = array_merge($_ENV ?? []); return $env[$key] ??= $default; }