Fix double submission bug, use createUnsafeMutable to override empty env values in Docker, and suppress direct warning printing
This commit is contained in:
@@ -9,7 +9,7 @@ require_once __DIR__ . '/../../../vendor/autoload.php';
|
||||
$dotenvPath = __DIR__ . '/../../../';
|
||||
if(file_exists($dotenvPath . '.env')){
|
||||
try{
|
||||
$dotenv = Dotenv\Dotenv::createImmutable($dotenvPath);
|
||||
$dotenv = Dotenv\Dotenv::createUnsafeMutable($dotenvPath);
|
||||
$dotenv->safeLoad();
|
||||
}catch(Exception $e){}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user