Skip to content

Commit

Permalink
refactor: use falsy check on getenv()
Browse files Browse the repository at this point in the history
  • Loading branch information
samsonasik committed Dec 27, 2024
1 parent 638a0d3 commit 77f0b39
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion system/Config/DotEnv.php
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ public function parse(): ?array
*/
protected function setVariable(string $name, string $value = '')
{
if (in_array(getenv($name, true), ['', '0', [], false], true)) {
if (getenv($name, true) === false) {
putenv("{$name}={$value}");
}

Expand Down

0 comments on commit 77f0b39

Please sign in to comment.