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

Commit fb9d3b1

Browse files
authored
Allow newer versions of file_get_contents (#55)
Closes #54
1 parent ac8802d commit fb9d3b1

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
],
1414
"require": {
1515
"php": ">=5.3.3",
16-
"padraic/humbug_get_contents": "1.0.4"
16+
"padraic/humbug_get_contents": "^1.0"
1717
},
1818
"require-dev": {
1919
"phpunit/phpunit": "~4.0"

src/Updater.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -301,11 +301,19 @@ public function getRestorePath()
301301

302302
public function throwRuntimeException($errno, $errstr)
303303
{
304+
if (E_USER_DEPRECATED === $errno) {
305+
return;
306+
}
307+
304308
throw new RuntimeException($errstr);
305309
}
306310

307311
public function throwHttpRequestException($errno, $errstr)
308312
{
313+
if (E_USER_DEPRECATED === $errno) {
314+
return;
315+
}
316+
309317
throw new HttpRequestException($errstr);
310318
}
311319

0 commit comments

Comments
 (0)