Skip to content

Commit

Permalink
feat: updating call to dotenv in order to be compatible with last ver…
Browse files Browse the repository at this point in the history
…sion of vlucas/phpdotenv
  • Loading branch information
well-it-wasnt-me committed Jan 5, 2024
1 parent 232f5da commit 5a5b772
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions config/settings.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
<?php

$dotenv = \Dotenv\Dotenv::create(__DIR__ . '/../');
$dotenv->overload();
//$dotenv = \Dotenv\Dotenv::create(__DIR__ . '/../');
$dotenv = \Dotenv\Dotenv::createMutable(__DIR__ . '/../');
$dotenv->load();
// Should be set to 0 in production
getenv('ENVIRONMENT') == 'prod' ? error_reporting(0) : error_reporting(E_ALL);

Expand Down

0 comments on commit 5a5b772

Please sign in to comment.