diff --git a/src/functions.php b/src/functions.php index 0be6d31..a2566d3 100644 --- a/src/functions.php +++ b/src/functions.php @@ -48,10 +48,13 @@ function app(?string $alias = null, $value = null): object } } -function env(string $params, string|bool $default = null) -{ - $env = Env::get($params, $default); - return $env ?? $default; +if (!function_exists('env')) { + + function env(string $params, string|bool $default = null) + { + $env = Env::get($params, $default); + return $env ?? $default; + } } if (!function_exists('is_cli')) {