Skip to content

Commit

Permalink
[7.x] Remove legacy Dotenv usage (#1054)
Browse files Browse the repository at this point in the history
Signed-off-by: Mior Muhammad Zaki <[email protected]>
  • Loading branch information
crynobone authored Aug 28, 2023
1 parent 1040b15 commit acadeb7
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions src/Console/DuskCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -282,20 +282,6 @@ protected function backupEnvironment()
*/
protected function refreshEnvironment()
{
// BC fix to support Dotenv ^2.2...
if (! method_exists(Dotenv::class, 'create')) {
(new Dotenv(base_path()))->overload(); // @phpstan-ignore-line

return;
}

// BC fix to support Dotenv ^3.0...
if (! method_exists(Dotenv::class, 'createMutable')) {
Dotenv::create(base_path())->overload();

return;
}

Dotenv::createMutable(base_path())->load();
}

Expand Down

0 comments on commit acadeb7

Please sign in to comment.