Skip to content

Commit

Permalink
Added fix for php < 8.0
Browse files Browse the repository at this point in the history
  • Loading branch information
jaxwilko committed Jan 4, 2023
1 parent be719c0 commit bb04049
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/EnvFile.php
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ public function set($key, $value = null)
is_numeric($value)
|| is_bool($value)
|| is_null($value)
|| (is_string($value) && !str_contains($value, ' ') && $item['token'] === $this->lexer::T_ENV)
|| (is_string($value) && strpos($value, ' ') === false && $item['token'] === $this->lexer::T_ENV)
) ? $this->lexer::T_ENV : $this->lexer::T_QUOTED_ENV;

return $this;
Expand Down

0 comments on commit bb04049

Please sign in to comment.