mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-05 17:36:12 +00:00
TextFormat: wrap all preg_replace() usages in a type-safe exception-throwing version
fixes 3 phpstan level 8 errors
This commit is contained in:
@ -1760,16 +1760,6 @@ parameters:
|
||||
count: 1
|
||||
path: ../../../src/pocketmine/utils/MainLogger.php
|
||||
|
||||
-
|
||||
message: "#^Parameter \\#3 \\$subject of function str_replace expects array\\|string, string\\|null given\\.$#"
|
||||
count: 2
|
||||
path: ../../../src/pocketmine/utils/TextFormat.php
|
||||
|
||||
-
|
||||
message: "#^Method pocketmine\\\\utils\\\\TextFormat\\:\\:colorize\\(\\) should return string but returns string\\|null\\.$#"
|
||||
count: 1
|
||||
path: ../../../src/pocketmine/utils/TextFormat.php
|
||||
|
||||
-
|
||||
message: "#^Method pocketmine\\\\utils\\\\Utils\\:\\:printable\\(\\) should return string but returns string\\|null\\.$#"
|
||||
count: 1
|
||||
|
Reference in New Issue
Block a user