From 40e60fb8495e0da718d7c00e72cedf09d6fe3e0d Mon Sep 17 00:00:00 2001 From: spiralbot Date: Fri, 6 Sep 2024 09:01:01 +0000 Subject: [PATCH] Apply php8.0 in Rector preset (#1139) --- src/helpers.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/helpers.php b/src/helpers.php index 71b1aee..d0157eb 100644 --- a/src/helpers.php +++ b/src/helpers.php @@ -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); }