Skip to content

Commit

Permalink
Fix README.md
Browse files Browse the repository at this point in the history
$APP_ENV is nothing, you need to use either $_ENV['APP_ENV'] or $_ENV['APP_ENV'].
  • Loading branch information
Nek- authored Aug 6, 2024
1 parent b7e0258 commit 6da407b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Symfony/Component/Dotenv/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ $dotenv->load(__DIR__.'/.env', __DIR__.'/.env.dev');
// overwrites existing env variables
$dotenv->overload(__DIR__.'/.env');

// loads .env, .env.local, and .env.$APP_ENV.local or .env.$APP_ENV
// loads .env, .env.local, and .env.$_SERVER['APP_ENV'].local or .env.$_SERVER['APP_ENV']
$dotenv->loadEnv(__DIR__.'/.env');
```

Expand Down

0 comments on commit 6da407b

Please sign in to comment.