mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-16 08:25:29 +00:00
Item::jsonDeserialize(): remove bogus phpdoc (we don't actually know if this is even valid)
This commit is contained in:
parent
b61a934c9f
commit
bedc9cf518
@ -605,14 +605,6 @@ class Item implements \JsonSerializable{
|
|||||||
/**
|
/**
|
||||||
* Returns an Item from properties created in an array by {@link Item#jsonSerialize}
|
* Returns an Item from properties created in an array by {@link Item#jsonSerialize}
|
||||||
* @param mixed[] $data
|
* @param mixed[] $data
|
||||||
* @phpstan-param array{
|
|
||||||
* id: int,
|
|
||||||
* damage?: int,
|
|
||||||
* count?: int,
|
|
||||||
* nbt?: string,
|
|
||||||
* nbt_hex?: string,
|
|
||||||
* nbt_b64?: string
|
|
||||||
* } $data
|
|
||||||
*
|
*
|
||||||
* @throws NbtDataException
|
* @throws NbtDataException
|
||||||
* @throws \InvalidArgumentException
|
* @throws \InvalidArgumentException
|
||||||
|
@ -581,7 +581,7 @@ parameters:
|
|||||||
path: ../../../src/inventory/CreativeInventory.php
|
path: ../../../src/inventory/CreativeInventory.php
|
||||||
|
|
||||||
-
|
-
|
||||||
message: "#^Parameter \\#1 \\$data of static method pocketmine\\\\item\\\\Item\\:\\:jsonDeserialize\\(\\) expects array\\{id\\: int, damage\\?\\: int, count\\?\\: int, nbt\\?\\: string, nbt_hex\\?\\: string, nbt_b64\\?\\: string\\}, mixed given\\.$#"
|
message: "#^Parameter \\#1 \\$data of static method pocketmine\\\\item\\\\Item\\:\\:jsonDeserialize\\(\\) expects array, mixed given\\.$#"
|
||||||
count: 1
|
count: 1
|
||||||
path: ../../../src/inventory/CreativeInventory.php
|
path: ../../../src/inventory/CreativeInventory.php
|
||||||
|
|
||||||
@ -601,7 +601,22 @@ parameters:
|
|||||||
path: ../../../src/inventory/transaction/CraftingTransaction.php
|
path: ../../../src/inventory/transaction/CraftingTransaction.php
|
||||||
|
|
||||||
-
|
-
|
||||||
message: "#^Parameter \\#1 \\$buffer of method pocketmine\\\\nbt\\\\BaseNbtSerializer\\:\\:read\\(\\) expects string, string\\|false given\\.$#"
|
message: "#^Cannot cast mixed to int\\.$#"
|
||||||
|
count: 3
|
||||||
|
path: ../../../src/item/Item.php
|
||||||
|
|
||||||
|
-
|
||||||
|
message: "#^Parameter \\#1 \\$buffer of method pocketmine\\\\nbt\\\\BaseNbtSerializer\\:\\:read\\(\\) expects string, mixed given\\.$#"
|
||||||
|
count: 1
|
||||||
|
path: ../../../src/item/Item.php
|
||||||
|
|
||||||
|
-
|
||||||
|
message: "#^Parameter \\#1 \\$string of function base64_decode expects string, mixed given\\.$#"
|
||||||
|
count: 1
|
||||||
|
path: ../../../src/item/Item.php
|
||||||
|
|
||||||
|
-
|
||||||
|
message: "#^Parameter \\#1 \\$string of function hex2bin expects string, mixed given\\.$#"
|
||||||
count: 1
|
count: 1
|
||||||
path: ../../../src/item/Item.php
|
path: ../../../src/item/Item.php
|
||||||
|
|
||||||
|
@ -1,10 +1,5 @@
|
|||||||
parameters:
|
parameters:
|
||||||
ignoreErrors:
|
ignoreErrors:
|
||||||
-
|
|
||||||
message: "#^Casting to int something that's already int\\.$#"
|
|
||||||
count: 2
|
|
||||||
path: ../../../src/item/Item.php
|
|
||||||
|
|
||||||
-
|
-
|
||||||
message: "#^Instanceof between pocketmine\\\\nbt\\\\tag\\\\CompoundTag and pocketmine\\\\nbt\\\\tag\\\\CompoundTag will always evaluate to true\\.$#"
|
message: "#^Instanceof between pocketmine\\\\nbt\\\\tag\\\\CompoundTag and pocketmine\\\\nbt\\\\tag\\\\CompoundTag will always evaluate to true\\.$#"
|
||||||
count: 1
|
count: 1
|
||||||
|
Loading…
x
Reference in New Issue
Block a user