You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 called bar
Activity
[-]Single quotes parsed literally[/-][+][2.6.0] Single quotes parsed literally[/+]GrahamCampbell commentedon Jan 29, 2019
Please let me know if #338 fixes your issue. :)
GrahamCampbell commentedon Jan 29, 2019
I've released v2.6.1 with the parser fixes.
mbrodala commentedon Jan 29, 2019
I've just checked and the latest version restores the previous behavior, thanks a lot!