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

Upgrade vlucas/phpdotenv to ^4.0.1 & fix breaking change #485

Merged
merged 3 commits into from
Feb 18, 2020

Conversation

kellymears
Copy link
Member

@kellymears kellymears commented Dec 9, 2019

Ref #484

vlucas/phpdotenv > 4.0.0 has a breaking change as the initialization method has been split up and the old method has been removed.

The new methods require you to specify if the env definitions are immutable or mutable.

This PR addresses this incompatibility by implementing the new Dotenv::createImmutable method. I don't think Bedrock is doing any overloading, so this is probably the better practice.

@austinpray austinpray self-requested a review December 9, 2019 18:03
Copy link
Contributor

@austinpray austinpray left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

From reading the docs: I think createImmutable() is compatible with the old behavior. I also agree that createImmutable probably leads to less surprises. Haven't tested the PR yet but seems harmless enough!

@QWp6t
Copy link
Member

QWp6t commented Dec 10, 2019

@kellymears Do you want to add this too?: #474 (comment)

I was gonna create a PR (per swalk's request), but it would conflict with this PR, so might as well combine them.

@austinpray
Copy link
Contributor

no combine pls: keep these pr topics separate

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