MainLogger: do not assume that exception codes are always integers

PDOException most notably breaks this rule.
closes #4294
This commit is contained in:
Dylan K. Taylor
2021-07-05 19:20:59 +01:00
parent 1d8f0033af
commit b7ea10b905
3 changed files with 8 additions and 9 deletions

View File

@ -205,11 +205,6 @@ parameters:
count: 1
path: ../../../src/utils/Internet.php
-
message: "#^Parameter \\#1 \\$errorType of static method pocketmine\\\\errorhandler\\\\ErrorTypeToStringMap\\:\\:get\\(\\) expects int, mixed given\\.$#"
count: 1
path: ../../../src/utils/MainLogger.php
-
message: "#^Part \\$errno \\(mixed\\) of encapsed string cannot be cast to string\\.$#"
count: 1