Skip to content

Commit

Permalink
🔧 avoid undefined array key warning
Browse files Browse the repository at this point in the history
  • Loading branch information
codemasher committed Mar 7, 2024
1 parent 7c369b1 commit 2fc9cad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/DotEnv.php
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ public function get(string $var):string|null{

}

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

if(empty($value)){
return null;
Expand Down

0 comments on commit 2fc9cad

Please sign in to comment.