We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0852f49 commit f840aa2Copy full SHA for f840aa2
1 file changed
system/Config/DotEnv.php
@@ -78,7 +78,7 @@ public function load(): bool
78
{
79
$vars = $this->parse();
80
81
- if ($vars === false)
+ if ($vars === null)
82
83
return false;
84
}
@@ -96,14 +96,14 @@ public function load(): bool
96
/**
97
* Parse the .env file into an array of key => value
98
*
99
- * @return array
+ * @return array|null
100
*/
101
- public function parse(): array
+ public function parse(): ?array
102
103
// We don't want to enforce the presence of a .env file, they should be optional.
104
if (! is_file($this->path))
105
106
- return false;
+ return null;
107
108
109
// Ensure the file is readable
0 commit comments