Closed
Description
Since version 2.6.0 single quotes are apparently parsed literally which leads to various issues:
foo='value with spaces'
is now 'value with spaces'
(was value with spaces
) and is thus unquoted (as in: not surrounded by double quotes) leading to an error:
PHP Fatal error: Uncaught Dotenv\Exception\InvalidFileException: Dotenv values containing spaces must be surrounded by quotes. in /.../vendor/vlucas/phpdotenv/src/Parser.php:7
Due to this, the $
character cannot be escaped properly anymore:
foo='$bar'
is now'$bar'
(was$bar
)foo="\$bar"
is\$bar
foo="$bar"
is$bar
but this will lead to issues when.env
is loaded e.g. in Bash which then tries to load a non-existing variable calledbar
Metadata
Metadata
Assignees
Labels
No labels