phpdotenv icon indicating copy to clipboard operation
phpdotenv copied to clipboard

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

Open kamyweb opened this issue 7 months ago • 0 comments

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?

kamyweb avatar Apr 25 '25 07:04 kamyweb