File tree Expand file tree Collapse file tree 2 files changed +16
-0
lines changed Expand file tree Collapse file tree 2 files changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -43,6 +43,8 @@ public function __construct($path, $file = '.env')
43
43
/**
44
44
* Load environment file in given directory.
45
45
*
46
+ * @throws \Dotenv\Exception\InvalidPathException|\Dotenv\Exception\InvalidFileException
47
+ *
46
48
* @return array
47
49
*/
48
50
public function load ()
@@ -53,6 +55,8 @@ public function load()
53
55
/**
54
56
* Load environment file in given directory, suppress InvalidPathException.
55
57
*
58
+ * @throws \Dotenv\Exception\InvalidFileException
59
+ *
56
60
* @return array
57
61
*/
58
62
public function safeLoad ()
@@ -68,6 +72,8 @@ public function safeLoad()
68
72
/**
69
73
* Load environment file in given directory.
70
74
*
75
+ * @throws \Dotenv\Exception\InvalidPathException|\Dotenv\Exception\InvalidFileException
76
+ *
71
77
* @return array
72
78
*/
73
79
public function overload ()
@@ -99,6 +105,8 @@ protected function getFilePath($path, $file)
99
105
*
100
106
* @param bool $overload
101
107
*
108
+ * @throws \Dotenv\Exception\InvalidPathException|\Dotenv\Exception\InvalidFileException
109
+ *
102
110
* @return array
103
111
*/
104
112
protected function loadData ($ overload = false )
Original file line number Diff line number Diff line change @@ -75,6 +75,8 @@ public function getImmutable()
75
75
/**
76
76
* Load `.env` file in given directory.
77
77
*
78
+ * @throws \Dotenv\Exception\InvalidPathException|\Dotenv\Exception\InvalidFileException
79
+ *
78
80
* @return array
79
81
*/
80
82
public function load ()
@@ -118,6 +120,8 @@ protected function ensureFileIsReadable()
118
120
* @param string $name
119
121
* @param string $value
120
122
*
123
+ * @throws \Dotenv\Exception\InvalidFileException
124
+ *
121
125
* @return array
122
126
*/
123
127
protected function normaliseEnvironmentVariable ($ name , $ value )
@@ -137,6 +141,8 @@ protected function normaliseEnvironmentVariable($name, $value)
137
141
* @param string $name
138
142
* @param string $value
139
143
*
144
+ * @throws \Dotenv\Exception\InvalidFileException
145
+ *
140
146
* @return array
141
147
*/
142
148
public function processFilters ($ name , $ value )
@@ -358,6 +364,8 @@ public function getEnvironmentVariable($name)
358
364
* @param string $name
359
365
* @param string|null $value
360
366
*
367
+ * @throws \Dotenv\Exception\InvalidFileException
368
+ *
361
369
* @return void
362
370
*/
363
371
public function setEnvironmentVariable ($ name , $ value = null )
You can’t perform that action at this time.
0 commit comments