We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 869aa53 commit d70af84Copy full SHA for d70af84
src/DotEnv.php
@@ -23,7 +23,7 @@ public function __construct(string $path)
23
public function load() :void
24
{
25
if (!is_readable($this->path)) {
26
- throw new \InvalidArgumentException(sprintf('%s file is not readable', $this->path));
+ throw new \RuntimeException(sprintf('%s file is not readable', $this->path));
27
}
28
29
$lines = file($this->path, FILE_IGNORE_NEW_LINES | FILE_SKIP_EMPTY_LINES);
0 commit comments