Skip to content

Commit

Permalink
Apply php8.0 in Rector preset (#1139)
Browse files Browse the repository at this point in the history
  • Loading branch information
spiralbot committed Sep 6, 2024
1 parent 0293bc8 commit 40e60fb
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/helpers.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,9 @@ function directory(string $alias): string
* Gets the value of an environment variable. Uses application core from the current global scope.
*
* @param non-empty-string $key
* @param mixed $default
* @return mixed
*/
function env(string $key, $default = null)
function env(string $key, mixed $default = null)
{
return spiral(EnvironmentInterface::class)->get($key, $default);
}
Expand Down

0 comments on commit 40e60fb

Please sign in to comment.