From 3eccb5b7ec4c96f9669db59a078b60ce8e7c2c3a Mon Sep 17 00:00:00 2001 From: QWp6t Date: Sat, 6 Apr 2024 20:42:44 -0700 Subject: [PATCH] =?UTF-8?q?=F0=9F=92=A5=20use=20`Dotenv::createImmutable()?= =?UTF-8?q?`=20(#714)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config/application.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/config/application.php b/config/application.php index 99c8ba2bf3..702f6e53da 100644 --- a/config/application.php +++ b/config/application.php @@ -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 * @@ -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();