mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-05-08 23:09:43 +00:00
this doesn't solve the underlying problem, but it does reduce the amount of noise made by PHPStan about it, as well as avoiding code litter.
278 lines
9.4 KiB
Plaintext
278 lines
9.4 KiB
Plaintext
parameters:
|
|
ignoreErrors:
|
|
-
|
|
message: "#^Cannot access offset \\(float\\|int\\) on mixed\\.$#"
|
|
count: 1
|
|
path: ../../../src/CrashDump.php
|
|
|
|
-
|
|
message: "#^Cannot access offset string on mixed\\.$#"
|
|
count: 1
|
|
path: ../../../src/CrashDump.php
|
|
|
|
-
|
|
message: "#^Parameter \\#1 \\$path of static method pocketmine\\\\utils\\\\Filesystem\\:\\:cleanPath\\(\\) expects string, mixed given\\.$#"
|
|
count: 1
|
|
path: ../../../src/CrashDump.php
|
|
|
|
-
|
|
message: "#^Cannot access offset 'type' on mixed\\.$#"
|
|
count: 1
|
|
path: ../../../src/Server.php
|
|
|
|
-
|
|
message: "#^Cannot cast mixed to string\\.$#"
|
|
count: 1
|
|
path: ../../../src/Server.php
|
|
|
|
-
|
|
message: "#^Parameter \\#1 \\$array of static method pocketmine\\\\plugin\\\\PluginGraylist\\:\\:fromArray\\(\\) expects array, mixed given\\.$#"
|
|
count: 1
|
|
path: ../../../src/Server.php
|
|
|
|
-
|
|
message: "#^Cannot cast mixed to int\\.$#"
|
|
count: 2
|
|
path: ../../../src/ServerConfigGroup.php
|
|
|
|
-
|
|
message: "#^Cannot cast mixed to string\\.$#"
|
|
count: 2
|
|
path: ../../../src/ServerConfigGroup.php
|
|
|
|
-
|
|
message: "#^Parameter \\#1 \\$str of function strtolower expects string, mixed given\\.$#"
|
|
count: 1
|
|
path: ../../../src/ServerConfigGroup.php
|
|
|
|
-
|
|
message: "#^Cannot access offset 'git' on mixed\\.$#"
|
|
count: 2
|
|
path: ../../../src/VersionInfo.php
|
|
|
|
-
|
|
message: "#^Cannot cast mixed to float\\.$#"
|
|
count: 1
|
|
path: ../../../src/command/defaults/VanillaCommand.php
|
|
|
|
-
|
|
message: "#^Cannot cast mixed to int\\.$#"
|
|
count: 1
|
|
path: ../../../src/command/defaults/VanillaCommand.php
|
|
|
|
-
|
|
message: "#^Argument of an invalid type mixed supplied for foreach, only iterables are supported\\.$#"
|
|
count: 1
|
|
path: ../../../src/inventory/CreativeInventory.php
|
|
|
|
-
|
|
message: "#^Parameter \\#1 \\$result of method pocketmine\\\\network\\\\mcpe\\\\compression\\\\CompressBatchPromise\\:\\:resolve\\(\\) expects string, mixed given\\.$#"
|
|
count: 1
|
|
path: ../../../src/network/mcpe/ChunkRequestTask.php
|
|
|
|
-
|
|
message: "#^Parameter \\#1 \\$result of method pocketmine\\\\network\\\\mcpe\\\\compression\\\\CompressBatchPromise\\:\\:resolve\\(\\) expects string, mixed given\\.$#"
|
|
count: 1
|
|
path: ../../../src/network/mcpe/compression/CompressBatchTask.php
|
|
|
|
-
|
|
message: "#^Method pocketmine\\\\network\\\\mcpe\\\\raklib\\\\PthreadsChannelReader\\:\\:read\\(\\) should return string\\|null but returns mixed\\.$#"
|
|
count: 1
|
|
path: ../../../src/network/mcpe/raklib/PthreadsChannelReader.php
|
|
|
|
-
|
|
message: "#^Parameter \\#1 \\$value of static method pocketmine\\\\permission\\\\PermissionParser\\:\\:defaultFromString\\(\\) expects bool\\|string, mixed given\\.$#"
|
|
count: 1
|
|
path: ../../../src/permission/PermissionParser.php
|
|
|
|
-
|
|
message: "#^Parameter \\#2 \\$description of class pocketmine\\\\permission\\\\Permission constructor expects string\\|null, mixed given\\.$#"
|
|
count: 1
|
|
path: ../../../src/permission/PermissionParser.php
|
|
|
|
-
|
|
message: "#^Parameter \\#1 \\$description of method pocketmine\\\\command\\\\Command\\:\\:setDescription\\(\\) expects string, mixed given\\.$#"
|
|
count: 1
|
|
path: ../../../src/plugin/PluginBase.php
|
|
|
|
-
|
|
message: "#^Parameter \\#1 \\$permissionMessage of method pocketmine\\\\command\\\\Command\\:\\:setPermissionMessage\\(\\) expects string, mixed given\\.$#"
|
|
count: 1
|
|
path: ../../../src/plugin/PluginBase.php
|
|
|
|
-
|
|
message: "#^Parameter \\#1 \\$usage of method pocketmine\\\\command\\\\Command\\:\\:setUsage\\(\\) expects string, mixed given\\.$#"
|
|
count: 1
|
|
path: ../../../src/plugin/PluginBase.php
|
|
|
|
-
|
|
message: "#^Argument of an invalid type mixed supplied for foreach, only iterables are supported\\.$#"
|
|
count: 1
|
|
path: ../../../src/plugin/PluginDescription.php
|
|
|
|
-
|
|
message: "#^Array \\(array\\<string\\>\\) does not accept mixed\\.$#"
|
|
count: 1
|
|
path: ../../../src/plugin/PluginDescription.php
|
|
|
|
-
|
|
message: "#^Cannot cast mixed to string\\.$#"
|
|
count: 4
|
|
path: ../../../src/plugin/PluginDescription.php
|
|
|
|
-
|
|
message: "#^Parameter \\#1 \\$data of static method pocketmine\\\\permission\\\\PermissionParser\\:\\:loadPermissions\\(\\) expects array\\<string, array\\<string, mixed\\>\\>, mixed given\\.$#"
|
|
count: 1
|
|
path: ../../../src/plugin/PluginDescription.php
|
|
|
|
-
|
|
message: "#^Parameter \\#1 \\$haystack of function stripos expects string, mixed given\\.$#"
|
|
count: 1
|
|
path: ../../../src/plugin/PluginDescription.php
|
|
|
|
-
|
|
message: "#^Parameter \\#1 \\$name of static method pocketmine\\\\plugin\\\\PluginEnableOrder\\:\\:fromString\\(\\) expects string, mixed given\\.$#"
|
|
count: 1
|
|
path: ../../../src/plugin/PluginDescription.php
|
|
|
|
-
|
|
message: "#^Parameter \\#1 \\$plugin of method pocketmine\\\\plugin\\\\PluginDescription\\:\\:loadMap\\(\\) expects array, mixed given\\.$#"
|
|
count: 1
|
|
path: ../../../src/plugin/PluginDescription.php
|
|
|
|
-
|
|
message: "#^Parameter \\#2 \\$subject of function preg_match expects string, mixed given\\.$#"
|
|
count: 1
|
|
path: ../../../src/plugin/PluginDescription.php
|
|
|
|
-
|
|
message: "#^Parameter \\#3 \\$subject of function str_replace expects array\\|string, mixed given\\.$#"
|
|
count: 1
|
|
path: ../../../src/plugin/PluginDescription.php
|
|
|
|
-
|
|
message: "#^Property pocketmine\\\\plugin\\\\PluginDescription\\:\\:\\$main \\(string\\) does not accept mixed\\.$#"
|
|
count: 1
|
|
path: ../../../src/plugin/PluginDescription.php
|
|
|
|
-
|
|
message: "#^Property pocketmine\\\\plugin\\\\PluginDescription\\:\\:\\$name \\(string\\) does not accept mixed\\.$#"
|
|
count: 1
|
|
path: ../../../src/plugin/PluginDescription.php
|
|
|
|
-
|
|
message: "#^Property pocketmine\\\\plugin\\\\PluginDescription\\:\\:\\$srcNamespacePrefix \\(string\\) does not accept mixed\\.$#"
|
|
count: 1
|
|
path: ../../../src/plugin/PluginDescription.php
|
|
|
|
-
|
|
message: "#^Parameter \\#1 \\$plugins of class pocketmine\\\\plugin\\\\PluginGraylist constructor expects array\\<string\\>, mixed given\\.$#"
|
|
count: 1
|
|
path: ../../../src/plugin/PluginGraylist.php
|
|
|
|
-
|
|
message: "#^Parameter \\#2 \\$code of class pocketmine\\\\resourcepacks\\\\ResourcePackException constructor expects int, mixed given\\.$#"
|
|
count: 1
|
|
path: ../../../src/resourcepacks/ZippedResourcePack.php
|
|
|
|
-
|
|
message: "#^Parameter \\#1 \\$str of function igbinary_unserialize expects string, mixed given\\.$#"
|
|
count: 1
|
|
path: ../../../src/scheduler/AsyncTask.php
|
|
|
|
-
|
|
message: "#^Property pocketmine\\\\scheduler\\\\AsyncTask\\:\\:\\$result \\(bool\\|float\\|int\\|string\\|null\\) does not accept mixed\\.$#"
|
|
count: 1
|
|
path: ../../../src/scheduler/AsyncTask.php
|
|
|
|
-
|
|
message: "#^Method pocketmine\\\\thread\\\\ThreadManager\\:\\:getAll\\(\\) should return array\\<pocketmine\\\\thread\\\\Thread\\|pocketmine\\\\thread\\\\Worker\\> but returns array\\.$#"
|
|
count: 1
|
|
path: ../../../src/thread/ThreadManager.php
|
|
|
|
-
|
|
message: "#^Method pocketmine\\\\timings\\\\TimingsHandler\\:\\:time\\(\\) should return TClosureReturn but returns TClosureReturn\\.$#"
|
|
count: 1
|
|
path: ../../../src/timings/TimingsHandler.php
|
|
|
|
-
|
|
message: "#^Parameter \\#2 \\$start of function substr expects int, mixed given\\.$#"
|
|
count: 1
|
|
path: ../../../src/utils/Internet.php
|
|
|
|
-
|
|
message: "#^Parameter \\#3 \\$length of function substr expects int, mixed given\\.$#"
|
|
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
|
|
path: ../../../src/utils/MainLogger.php
|
|
|
|
-
|
|
message: "#^Cannot access offset 'status' on mixed\\.$#"
|
|
count: 1
|
|
path: ../../../src/utils/Timezone.php
|
|
|
|
-
|
|
message: "#^Cannot access offset 'timezone' on mixed\\.$#"
|
|
count: 2
|
|
path: ../../../src/utils/Timezone.php
|
|
|
|
-
|
|
message: "#^Parameter \\#1 \\$path of static method pocketmine\\\\utils\\\\Filesystem\\:\\:cleanPath\\(\\) expects string, mixed given\\.$#"
|
|
count: 1
|
|
path: ../../../src/utils/Utils.php
|
|
|
|
-
|
|
message: "#^Parameter \\#2 \\$input1 of function array_map expects array, mixed given\\.$#"
|
|
count: 1
|
|
path: ../../../src/utils/Utils.php
|
|
|
|
-
|
|
message: "#^Parameter \\#1 \\$keys of function array_fill_keys expects array, mixed given\\.$#"
|
|
count: 1
|
|
path: ../../../src/world/World.php
|
|
|
|
-
|
|
message: "#^Cannot access offset 1 on mixed\\.$#"
|
|
count: 2
|
|
path: ../../../src/world/format/io/region/RegionWorldProvider.php
|
|
|
|
-
|
|
message: "#^Cannot access offset 2 on mixed\\.$#"
|
|
count: 2
|
|
path: ../../../src/world/format/io/region/RegionWorldProvider.php
|
|
|
|
-
|
|
message: "#^Argument of an invalid type mixed supplied for foreach, only iterables are supported\\.$#"
|
|
count: 1
|
|
path: ../../phpunit/block/BlockTest.php
|
|
|
|
-
|
|
message: "#^Cannot access offset \\(int\\|string\\) on mixed\\.$#"
|
|
count: 1
|
|
path: ../../phpunit/block/BlockTest.php
|
|
|
|
-
|
|
message: "#^Parameter \\#2 \\$array of static method PHPUnit\\\\Framework\\\\Assert\\:\\:assertArrayHasKey\\(\\) expects array\\|ArrayAccess, mixed given\\.$#"
|
|
count: 1
|
|
path: ../../phpunit/block/BlockTest.php
|
|
|
|
-
|
|
message: "#^Argument of an invalid type mixed supplied for foreach, only iterables are supported\\.$#"
|
|
count: 1
|
|
path: ../../phpunit/block/regenerate_consistency_check.php
|
|
|
|
-
|
|
message: "#^Cannot access offset \\(int\\|string\\) on mixed\\.$#"
|
|
count: 3
|
|
path: ../../phpunit/block/regenerate_consistency_check.php
|
|
|