diff --git a/packages/framework/src/Foundation/Internal/LoadConfiguration.php b/packages/framework/src/Foundation/Internal/LoadConfiguration.php index d3ec0b705e2..9413fd0d768 100644 --- a/packages/framework/src/Foundation/Internal/LoadConfiguration.php +++ b/packages/framework/src/Foundation/Internal/LoadConfiguration.php @@ -106,7 +106,7 @@ private function loadRuntimeConfiguration(Application $app, RepositoryContract $ } } - protected function getEnv(string $name): string|false + protected function getEnv(string $name): string|false|null { return getenv($name); } diff --git a/packages/framework/tests/Unit/LoadConfigurationTest.php b/packages/framework/tests/Unit/LoadConfigurationTest.php index f37e13f0c26..a6ce24ef142 100644 --- a/packages/framework/tests/Unit/LoadConfigurationTest.php +++ b/packages/framework/tests/Unit/LoadConfigurationTest.php @@ -53,7 +53,7 @@ public function __construct(array $env) $this->env = $env; } - protected function getEnv(string $name): string|false + protected function getEnv(string $name): string|false|null { return $this->env[$name]; }