Skip to content

Warnings when some variables inside .env file hit name with other that already exists #579

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

Open
kamyweb opened this issue Apr 25, 2025 · 0 comments

Comments

@kamyweb
Copy link

kamyweb commented Apr 25, 2025

After some hours spent on this https://stackoverflow.com/questions/79591956/aws-ecs-docker-automatic-environment-variables-injections/79591957#79591957 I think maybe usefull if phpdotenv when is simply "load" and some variable is not loaded because is already set on system, may log some warnings to help developers to understand why the value become inconsistent.

Calling a container "redis" or "db" or "mail" with a Laravel app may hit the problem described on stackoverflow on AWS ECS environment without any warning and create inconsistent and hard to debug problem.

Is it possible and helpfull to add this warnings message?

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

No branches or pull requests

1 participant