Skip to content

Commit 3eccb5b

Browse files
authored
💥 use Dotenv::createImmutable() (roots#714)
1 parent 8108ac7 commit 3eccb5b

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

config/application.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@
1111
use Roots\WPConfig\Config;
1212
use function Env\env;
1313

14+
// USE_ENV_ARRAY + CONVERT_* + STRIP_QUOTES
15+
Env\Env::$options = 31;
16+
1417
/**
1518
* Directory containing all of the site's files
1619
*
@@ -34,7 +37,7 @@
3437
? ['.env', '.env.local']
3538
: ['.env'];
3639

37-
$dotenv = Dotenv\Dotenv::createUnsafeImmutable($root_dir, $env_files, false);
40+
$dotenv = Dotenv\Dotenv::createImmutable($root_dir, $env_files, false);
3841

3942
$dotenv->load();
4043

0 commit comments

Comments
 (0)