Skip to content

Commit acadeb7

Browse files
authored
[7.x] Remove legacy Dotenv usage (#1054)
Signed-off-by: Mior Muhammad Zaki <[email protected]>
1 parent 1040b15 commit acadeb7

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

src/Console/DuskCommand.php

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -282,20 +282,6 @@ protected function backupEnvironment()
282282
*/
283283
protected function refreshEnvironment()
284284
{
285-
// BC fix to support Dotenv ^2.2...
286-
if (! method_exists(Dotenv::class, 'create')) {
287-
(new Dotenv(base_path()))->overload(); // @phpstan-ignore-line
288-
289-
return;
290-
}
291-
292-
// BC fix to support Dotenv ^3.0...
293-
if (! method_exists(Dotenv::class, 'createMutable')) {
294-
Dotenv::create(base_path())->overload();
295-
296-
return;
297-
}
298-
299285
Dotenv::createMutable(base_path())->load();
300286
}
301287

0 commit comments

Comments
 (0)