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

Fix .env loading in development #799

Merged
merged 2 commits into from
Feb 14, 2022
Merged

Conversation

erikgaal
Copy link
Contributor

Dotenv::create($paths) was the syntax for releases before v4. As it's a dev dependency, I think it's reasonable to require the latest major version at minimum.

`Dotenv::create($paths)` was the syntax for releases before v4
@stancl
Copy link
Member

stancl commented Feb 11, 2022

As it's a dev dependency, I think it's reasonable to require the latest major version at minimum.

Do they support older Laravel? The dev dependencies are used in the CI build with different Laravel versions

@erikgaal
Copy link
Contributor Author

Right, I see now that it's actually already a dependency of laravel/framework. In that case we don't have to include that dependency ourselves, right? I will update the PR to use the correct create/createImmutable method, based on the version instead so it will work on all version.

@stancl
Copy link
Member

stancl commented Feb 12, 2022

Ah yeah, it's a dependency of laravel/framework, you can remove it.

I think I added it before we had full laravel/framework in the dev dependencies. But it might not be needed now

@erikgaal erikgaal changed the title Upgrade vlucas/phpdotenv to ^5.0 Fix .env loading in development Feb 14, 2022
@codecov-commenter
Copy link

codecov-commenter commented Feb 14, 2022

Codecov Report

Merging #799 (8771235) into 3.x (f08e33a) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff            @@
##                3.x     #799   +/-   ##
=========================================
  Coverage     87.32%   87.32%           
  Complexity      383      383           
=========================================
  Files           103      103           
  Lines          1128     1128           
=========================================
  Hits            985      985           
  Misses          143      143           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update f08e33a...8771235. Read the comment docs.

@stancl stancl merged commit 9c79267 into archtechx:3.x Feb 14, 2022
@erikgaal erikgaal deleted the patch-update-dotenv branch February 14, 2022 13:31
@stancl
Copy link
Member

stancl commented Feb 14, 2022

Thanks Erik!

Is this change just a codebase cleanup, or were you contributing it because there was some issue with the package? Asking so that I know if you need this released now

@erikgaal
Copy link
Contributor Author

It's just a cleanup in preparation of a L9 compatibility PR I was planning to submit.

viicslen pushed a commit to viicslen/tenancy that referenced this pull request Feb 17, 2022
* Upgrade vlucas/phpdotenv to ^5.0

`Dotenv::create($paths)` was the syntax for releases before v4

* Remove vlucas/phpdotenv dependency and make it work with newer versions.
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.

None yet

3 participants