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
{{ message }}
Repository navigation
[3.3] Failed to parse dotenv file due to unexpected whitespace #341
If I remove the = at the end before the double quote, it works. But why it failed with it? I use double-quotes. Works perfectly on v3.2.0. Do I miss something here?
changed the title [-]Failed to parse dotenv file due to unexpected whitespace[/-][+][3.1] Failed to parse dotenv file due to unexpected whitespace[/+]on Jan 29, 2019
changed the title [-][3.1] Failed to parse dotenv file due to unexpected whitespace[/-][+][3.3] Failed to parse dotenv file due to unexpected whitespace[/+]on Jan 29, 2019
Activity
GrahamCampbell commentedon Jan 29, 2019
Oh, interesting. Thanks for the report. This looks like a bug. I'll take a look.
[-]Failed to parse dotenv file due to unexpected whitespace[/-][+][3.1] Failed to parse dotenv file due to unexpected whitespace[/+][-][3.1] Failed to parse dotenv file due to unexpected whitespace[/-][+][3.3] Failed to parse dotenv file due to unexpected whitespace[/+]GrahamCampbell commentedon Jan 29, 2019
@kinoute Please let me know if #342 fixes your issue.
kinoute commentedon Jan 30, 2019
Yep, it fixes the issue. Good job!
GrahamCampbell commentedon Jan 30, 2019
Perfect. I'll release v3.3.2 in the next few minutes.
anskhilji commentedon Feb 14, 2020
thank you so much
Romerolweb commentedon Jul 5, 2021
I have the same problem, and I have
"vlucas/phpdotenv": "^4.0",
in my project (I am using Laravel)
Thanks for your help
GrahamCampbell commentedon Jul 5, 2021
Are you sure you don't actually have invalid syntax in your file. Can you share an example file that doesn't work?