Skip to content

Commit

Permalink
Added missing throws doc (#330)
Browse files Browse the repository at this point in the history
  • Loading branch information
GrahamCampbell authored Jan 28, 2019
1 parent d7f715a commit aa4be46
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/Dotenv.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@ public function __construct($path, $file = '.env')
/**
* Load environment file in given directory.
*
* @throws \Dotenv\Exception\InvalidPathException|\Dotenv\Exception\InvalidFileException
*
* @return array
*/
public function load()
Expand All @@ -53,6 +55,8 @@ public function load()
/**
* Load environment file in given directory, suppress InvalidPathException.
*
* @throws \Dotenv\Exception\InvalidFileException
*
* @return array
*/
public function safeLoad()
Expand All @@ -68,6 +72,8 @@ public function safeLoad()
/**
* Load environment file in given directory.
*
* @throws \Dotenv\Exception\InvalidPathException|\Dotenv\Exception\InvalidFileException
*
* @return array
*/
public function overload()
Expand Down Expand Up @@ -99,6 +105,8 @@ protected function getFilePath($path, $file)
*
* @param bool $overload
*
* @throws \Dotenv\Exception\InvalidPathException|\Dotenv\Exception\InvalidFileException
*
* @return array
*/
protected function loadData($overload = false)
Expand Down
8 changes: 8 additions & 0 deletions src/Loader.php
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,8 @@ public function getImmutable()
/**
* Load `.env` file in given directory.
*
* @throws \Dotenv\Exception\InvalidPathException|\Dotenv\Exception\InvalidFileException
*
* @return array
*/
public function load()
Expand Down Expand Up @@ -118,6 +120,8 @@ protected function ensureFileIsReadable()
* @param string $name
* @param string $value
*
* @throws \Dotenv\Exception\InvalidFileException
*
* @return array
*/
protected function normaliseEnvironmentVariable($name, $value)
Expand All @@ -137,6 +141,8 @@ protected function normaliseEnvironmentVariable($name, $value)
* @param string $name
* @param string $value
*
* @throws \Dotenv\Exception\InvalidFileException
*
* @return array
*/
public function processFilters($name, $value)
Expand Down Expand Up @@ -358,6 +364,8 @@ public function getEnvironmentVariable($name)
* @param string $name
* @param string|null $value
*
* @throws \Dotenv\Exception\InvalidFileException
*
* @return void
*/
public function setEnvironmentVariable($name, $value = null)
Expand Down

0 comments on commit aa4be46

Please sign in to comment.