-
-
Notifications
You must be signed in to change notification settings - Fork 196
Closed
Description
Hi,
$ cat .env|wc -l
101
$ composer dump-env dev && cat .env.local.php
Successfully dumped .env files in .env.local.php
<?php
// This file was generated by running "composer dump-env dev"
return array (
'APP_ENV' => 'dev',
);
In the execution context of the composer dump-env dev
command, all my env variables in my .env
file are in fact already sourced (already present as env variables).
I would expect the dump-env
command to not be impacted by what variables are already set in the env and just dump whatever is in .env*
to .env.local.php
. Otherwise it leads to unexpected results (empty or partial env cache file generated).
Is that my mistake to have such env variables already sourced or is it an unexpected behavior of dump-env
, or both ?
Thanks!
Metadata
Metadata
Assignees
Labels
No labels