Skip to content

Commit 2fc9cad

Browse files
committed
🔧 avoid undefined array key warning
1 parent 7c369b1 commit 2fc9cad

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/DotEnv.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ public function get(string $var):string|null{
135135

136136
}
137137

138-
$value = $env ?? $this->_ENV[$var];
138+
$value = $env ?? $this->_ENV[$var] ?? null;
139139

140140
if(empty($value)){
141141
return null;

0 commit comments

Comments
 (0)