Skip to content
This repository has been archived by the owner on Mar 15, 2020. It is now read-only.

Commit

Permalink
Allow newer versions of file_get_contents (#55)
Browse files Browse the repository at this point in the history
Closes #54
  • Loading branch information
theofidry authored Feb 20, 2018
1 parent ac8802d commit fb9d3b1
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
],
"require": {
"php": ">=5.3.3",
"padraic/humbug_get_contents": "1.0.4"
"padraic/humbug_get_contents": "^1.0"
},
"require-dev": {
"phpunit/phpunit": "~4.0"
Expand Down
8 changes: 8 additions & 0 deletions src/Updater.php
Original file line number Diff line number Diff line change
Expand Up @@ -301,11 +301,19 @@ public function getRestorePath()

public function throwRuntimeException($errno, $errstr)
{
if (E_USER_DEPRECATED === $errno) {
return;
}

throw new RuntimeException($errstr);
}

public function throwHttpRequestException($errno, $errstr)
{
if (E_USER_DEPRECATED === $errno) {
return;
}

throw new HttpRequestException($errstr);
}

Expand Down

0 comments on commit fb9d3b1

Please sign in to comment.