Skip to content

Commit f840aa2

Browse files
committed
Correct return type
1 parent 0852f49 commit f840aa2

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

system/Config/DotEnv.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ public function load(): bool
7878
{
7979
$vars = $this->parse();
8080

81-
if ($vars === false)
81+
if ($vars === null)
8282
{
8383
return false;
8484
}
@@ -96,14 +96,14 @@ public function load(): bool
9696
/**
9797
* Parse the .env file into an array of key => value
9898
*
99-
* @return array
99+
* @return array|null
100100
*/
101-
public function parse(): array
101+
public function parse(): ?array
102102
{
103103
// We don't want to enforce the presence of a .env file, they should be optional.
104104
if (! is_file($this->path))
105105
{
106-
return false;
106+
return null;
107107
}
108108

109109
// Ensure the file is readable

0 commit comments

Comments
 (0)