Skip to content

Commit

Permalink
update file
Browse files Browse the repository at this point in the history
  • Loading branch information
juancristobalgd1 authored May 19, 2024
1 parent da6b00d commit c8cb402
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions src/functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -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')) {
Expand Down

0 comments on commit c8cb402

Please sign in to comment.