From 33122139e394ec609dda2bace16566f37d29b0de Mon Sep 17 00:00:00 2001 From: Leonardo Carvalho <134537873+srcarvalho12@users.noreply.github.com> Date: Wed, 21 Jan 2026 11:19:02 -0400 Subject: [PATCH] Enhance environment loading for non-production --- src/Core.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Core.php b/src/Core.php index 0a27da7..b636e8e 100644 --- a/src/Core.php +++ b/src/Core.php @@ -536,7 +536,7 @@ public static function loadApplicationEnv(string $directory) { \Dotenv\Dotenv::createUnsafeImmutable($directory)->safeLoad(); - if ($_ENV['APP_ENV'] !== 'production') { + if (($_ENV['APP_ENV'] ?? getenv('APP_ENV')) !== 'production') { foreach ($_ENV as $key => $value) { putenv(assignment: $key); unset($_ENV[$key], $_SERVER[$key]);