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

[6.x] Fixed code that depended on getenv #30924

Merged
merged 3 commits into from Dec 25, 2019
Merged

[6.x] Fixed code that depended on getenv #30924

merged 3 commits into from Dec 25, 2019

Conversation

GrahamCampbell
Copy link
Member

If the env variables are loaded without using putenv, then getenv won't be able to see them, so the current code is wrong. It should use Laravel's env helper.

@antonkomarev
Copy link
Contributor

Maybe use Env support class instead of env helper method?

@GrahamCampbell
Copy link
Member Author

Maybe use Env support class instead of env helper method?

I'll do that in src, but not in tests, since all of the other tests use the global helper, and none of them use the Env class directly.

@taylorotwell taylorotwell merged commit a7db749 into 6.x Dec 25, 2019
@GrahamCampbell GrahamCampbell deleted the redis-env-fixes branch December 25, 2019 15:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants