From c8cb4021ddfc0ff5fb700cb0362fa17deda65b7c Mon Sep 17 00:00:00 2001 From: Juan Cristobal <65052633+juancristobalgd1@users.noreply.github.com> Date: Sun, 19 May 2024 04:27:03 +0200 Subject: [PATCH] update file --- src/functions.php | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) 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')) {