Skip to content

Commit ade3627

Browse files
authored
Dotenv: Unused Loader instance in __construct
loadData() will always create a Loader instance, so creating one in Dotenv::__construct() is pointless.
1 parent 3cc116a commit ade3627

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

src/Dotenv.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ class Dotenv
3535
public function __construct($path, $file = '.env')
3636
{
3737
$this->filePath = $this->getFilePath($path, $file);
38-
$this->loader = new Loader($this->filePath, true);
3938
}
4039

4140
/**

0 commit comments

Comments
 (0)