Skip to content

Fix Dotenv never loading overrides#2042

Open
johanib wants to merge 1 commit into
mainfrom
feature/fix-dotenv
Open

Fix Dotenv never loading overrides#2042
johanib wants to merge 1 commit into
mainfrom
feature/fix-dotenv

Conversation

@johanib

@johanib johanib commented Jul 2, 2026

Copy link
Copy Markdown
Contributor

Prior to this change Dotenv would never load override files. For example, .env.prod would never be read. Only .env would be parsed. This was caused because we forgot to remove the old constructor parameter that was refactored in v5 of symfony/dotenv.

This change removes the erroneous constructor parameter, restoring dotenv functionality to work as expected.

See
https://github.com/symfony/dotenv/blob/8.2/CHANGELOG.md#510

Prior to this change Dotenv would never load override files. For example, `.env.prod` would never be read. Only `.env` would be parsed.
This was caused because we forgot to remove the old constructor parameter that was refactored in v5 of `symfony/dotenv`.

This change removes the erroneous constructor parameter, restoring dotenv functionality to work as expected.

See
https://github.com/symfony/dotenv/blob/8.2/CHANGELOG.md#510
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants