Skip to content

Commit d70af84

Browse files
author
Fady Michel
committed
improvement exception
1 parent 869aa53 commit d70af84

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/DotEnv.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ public function __construct(string $path)
2323
public function load() :void
2424
{
2525
if (!is_readable($this->path)) {
26-
throw new \InvalidArgumentException(sprintf('%s file is not readable', $this->path));
26+
throw new \RuntimeException(sprintf('%s file is not readable', $this->path));
2727
}
2828

2929
$lines = file($this->path, FILE_IGNORE_NEW_LINES | FILE_SKIP_EMPTY_LINES);

0 commit comments

Comments
 (0)