Skip to content

Commit

Permalink
💥 use Dotenv::createImmutable() (#714)
Browse files Browse the repository at this point in the history
  • Loading branch information
QWp6t authored Apr 7, 2024
1 parent 8108ac7 commit 3eccb5b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion config/application.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@
use Roots\WPConfig\Config;
use function Env\env;

// USE_ENV_ARRAY + CONVERT_* + STRIP_QUOTES
Env\Env::$options = 31;

/**
* Directory containing all of the site's files
*
Expand All @@ -34,7 +37,7 @@
? ['.env', '.env.local']
: ['.env'];

$dotenv = Dotenv\Dotenv::createUnsafeImmutable($root_dir, $env_files, false);
$dotenv = Dotenv\Dotenv::createImmutable($root_dir, $env_files, false);

$dotenv->load();

Expand Down

0 comments on commit 3eccb5b

Please sign in to comment.