Skip to content

Commit

Permalink
Allow newer versions of file_get_contents
Browse files Browse the repository at this point in the history
Closes humbug#54
  • Loading branch information
theofidry committed Feb 20, 2018
1 parent ac8802d commit 764819d
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 764819d

Please sign in to comment.