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 5f089e2 commit e706e25Copy full SHA for e706e25
src/Loader.php
@@ -74,13 +74,8 @@ public function load()
74
*/
75
protected function ensureFileIsReadable()
76
{
77
- $filePath = $this->filePath;
78
- if (!is_readable($filePath) || !is_file($filePath)) {
79
- throw new InvalidPathException(sprintf(
80
- 'Dotenv: Environment file .env not found or not readable. '.
81
- 'Create file with your environment settings at %s.',
82
- $filePath
83
- ));
+ if (!is_readable($this->filePath) || !is_file($this->filePath)) {
+ throw new InvalidPathException(sprintf('Unable to read the environment file at %s.', $this->filePath));
84
}
85
86
0 commit comments