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')
4343 /**
4444 * Load environment file in given directory.
4545 *
46+ * @throws \Dotenv\Exception\InvalidPathException|\Dotenv\Exception\InvalidFileException
47+ *
4648 * @return array
4749 */
4850 public function load ()
@@ -53,6 +55,8 @@ public function load()
5355 /**
5456 * Load environment file in given directory, suppress InvalidPathException.
5557 *
58+ * @throws \Dotenv\Exception\InvalidFileException
59+ *
5660 * @return array
5761 */
5862 public function safeLoad ()
@@ -68,6 +72,8 @@ public function safeLoad()
6872 /**
6973 * Load environment file in given directory.
7074 *
75+ * @throws \Dotenv\Exception\InvalidPathException|\Dotenv\Exception\InvalidFileException
76+ *
7177 * @return array
7278 */
7379 public function overload ()
@@ -99,6 +105,8 @@ protected function getFilePath($path, $file)
99105 *
100106 * @param bool $overload
101107 *
108+ * @throws \Dotenv\Exception\InvalidPathException|\Dotenv\Exception\InvalidFileException
109+ *
102110 * @return array
103111 */
104112 protected function loadData ($ overload = false )
Original file line number Diff line number Diff line change @@ -75,6 +75,8 @@ public function getImmutable()
7575 /**
7676 * Load `.env` file in given directory.
7777 *
78+ * @throws \Dotenv\Exception\InvalidPathException|\Dotenv\Exception\InvalidFileException
79+ *
7880 * @return array
7981 */
8082 public function load ()
@@ -118,6 +120,8 @@ protected function ensureFileIsReadable()
118120 * @param string $name
119121 * @param string $value
120122 *
123+ * @throws \Dotenv\Exception\InvalidFileException
124+ *
121125 * @return array
122126 */
123127 protected function normaliseEnvironmentVariable ($ name , $ value )
@@ -137,6 +141,8 @@ protected function normaliseEnvironmentVariable($name, $value)
137141 * @param string $name
138142 * @param string $value
139143 *
144+ * @throws \Dotenv\Exception\InvalidFileException
145+ *
140146 * @return array
141147 */
142148 public function processFilters ($ name , $ value )
@@ -358,6 +364,8 @@ public function getEnvironmentVariable($name)
358364 * @param string $name
359365 * @param string|null $value
360366 *
367+ * @throws \Dotenv\Exception\InvalidFileException
368+ *
361369 * @return void
362370 */
363371 public function setEnvironmentVariable ($ name , $ value = null )
You can’t perform that action at this time.
0 commit comments