AutoUpdater: use JsonMapper to handle API response information

This commit is contained in:
Dylan K. Taylor
2020-06-18 19:03:11 +01:00
parent 2687e63645
commit 98f0447912
5 changed files with 128 additions and 59 deletions

View File

@ -310,36 +310,11 @@ parameters:
count: 1
path: ../../../src/timings/TimingsHandler.php
-
message: "#^Parameter \\#2 \\$timestamp of function date expects int, mixed given\\.$#"
count: 1
path: ../../../src/updater/AutoUpdater.php
-
message: "#^Parameter \\#1 \\$baseVersion of class pocketmine\\\\utils\\\\VersionString constructor expects string, mixed given\\.$#"
count: 1
path: ../../../src/updater/AutoUpdater.php
-
message: "#^Parameter \\#2 \\$isDevBuild of class pocketmine\\\\utils\\\\VersionString constructor expects bool, mixed given\\.$#"
count: 1
path: ../../../src/updater/AutoUpdater.php
-
message: "#^Parameter \\#3 \\$buildNumber of class pocketmine\\\\utils\\\\VersionString constructor expects int, mixed given\\.$#"
count: 1
path: ../../../src/updater/AutoUpdater.php
-
message: "#^Parameter \\#1 \\$str of function strtolower expects string, mixed given\\.$#"
count: 1
path: ../../../src/updater/AutoUpdater.php
-
message: "#^Parameter \\#1 \\$updateInfo of method pocketmine\\\\updater\\\\AutoUpdater\\:\\:checkUpdateCallback\\(\\) expects array\\<string, mixed\\>, mixed given\\.$#"
count: 1
path: ../../../src/updater/UpdateCheckTask.php
-
message: "#^Parameter \\#3 \\$length of function substr expects int, mixed given\\.$#"
count: 1