Skip to content

Commit

Permalink
Added todos for throwing exceptions, #42
Browse files Browse the repository at this point in the history
  • Loading branch information
thelfensdrfer committed Dec 28, 2018
1 parent 60da41d commit 68872c2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/AutoUpdate.php
Original file line number Diff line number Diff line change
Expand Up @@ -444,6 +444,7 @@ public function checkUpdate()
throw new DownloadException($updateFile);
}
} else {
// TODO: Throw exception on error
$update = @file_get_contents($updateFile, false, $this->_useBasicAuth());

if ($update === false) {
Expand Down Expand Up @@ -599,6 +600,7 @@ protected function _downloadUpdate($updateUrl, $updateFile)
return false;
}
} elseif (ini_get('allow_url_fopen')) {
// TODO: Throw exception on error
$update = @file_get_contents($updateUrl, false, $this->_useBasicAuth());

if ($update === false) {
Expand Down

0 comments on commit 68872c2

Please sign in to comment.