Page MenuHomeDevCentral

D3050.id7784.diff
No OneTemporary

D3050.id7784.diff

diff --git a/composer.json b/composer.json
--- a/composer.json
+++ b/composer.json
@@ -16,7 +16,7 @@
}
],
"require": {
- "vlucas/phpdotenv": "dev-master",
+ "vlucas/phpdotenv": "^5.5.0",
"nasqueron/saas-service": "^0.0.1",
"keruald/commands": "^0.0.1"
},
diff --git a/src/Environment.php b/src/Environment.php
--- a/src/Environment.php
+++ b/src/Environment.php
@@ -18,7 +18,7 @@
public static function load () : void {
if (!self::$isLoaded) {
$directory = self::getDirectory();
- $dotenv = new Dotenv($directory);
+ $dotenv = Dotenv::createImmutable($directory);
$dotenv->safeLoad();
try {
$dotenv->required(self::getRequiredVariables());

File Metadata

Mime Type
text/plain
Expires
Sun, Nov 24, 13:03 (10 h, 18 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2260204
Default Alt Text
D3050.id7784.diff (789 B)

Event Timeline