Skip to content

Commit

Permalink
Allow null to be returned
Browse files Browse the repository at this point in the history
  • Loading branch information
caendesilva committed Nov 11, 2023
1 parent 7e97e3d commit f341cdc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down
2 changes: 1 addition & 1 deletion packages/framework/tests/Unit/LoadConfigurationTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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];
}
Expand Down

0 comments on commit f341cdc

Please sign in to comment.