Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove deprecated constructor argument from symfony/dotenv #265

Merged
merged 1 commit into from
Jul 28, 2022

Conversation

PeteWJ
Copy link
Member

@PeteWJ PeteWJ commented Jul 28, 2022

symfony/dotenv has changed the constructor arguments in v6 (deprecated in v5).
https://github.com/symfony/dotenv/blob/5.1/Dotenv.php#L49

This PR updates the initialisation to remove the deleted boolean value in the constructor and adds a call to usePutEnv in order to ensure PHPUnit is able to correctly load appropriate variables.

@andrewjt71
Copy link

andrewjt71 commented Jul 28, 2022

Here's the deprecation for future reference: https://github.com/symfony/dotenv/blob/5.1/Dotenv.php#L49

@PeteWJ PeteWJ merged commit d2839f9 into main Jul 28, 2022
@PeteWJ PeteWJ deleted the remove-unsupported-dotenv-constructor-argument branch July 28, 2022 10:32
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.

4 participants