Avoid warning

This commit is contained in:
Pablo Ferreiro 2022-05-22 12:31:49 +02:00
parent cd524c8da8
commit 177f290e56
No known key found for this signature in database
GPG key ID: 41FBCE65B779FA24

View file

@ -3,8 +3,10 @@ require __DIR__ . "/vendor/autoload.php";
$dotenv = new josegonzalez\Dotenv\Loader(__DIR__ . '/.env');
$dotenv->raiseExceptions(false);
$dotenv->parse();
$dotenv->toEnv();
$result = $dotenv->parse();
if ($result !== false) {
$dotenv->toEnv();
}
// ROUTER
$router = new Bramus\Router\Router();