Skip to content

Commit eeea242

Browse files
joelpittetwebflo
andauthored
Allow getenv() to work again with vlucas/phpdotenv 5.x (#584)
Allow getenv() to work again, update load.environment.php Co-authored-by: Florian Weber <[email protected]>
1 parent ca9db66 commit eeea242

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

load.environment.php

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@
1010

1111
/**
1212
* Load any .env file. See /.env.example.
13+
*
14+
* Drupal has no official method for loading environment variables and uses
15+
* getenv() in some places.
1316
*/
14-
$dotenv = Dotenv::createImmutable(__DIR__);
15-
$dotenv->safeLoad();
17+
$dotenv = Dotenv::createUnsafeImmutable(__DIR__);
18+
$dotenv->load();

0 commit comments

Comments
 (0)