mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-22 08:44:01 +00:00
ItemFrame: fixed a phpstan level 8 error
This commit is contained in:
parent
45b4e3cd7a
commit
f039a077cd
@ -142,7 +142,7 @@ class ItemFrame extends Flowable{
|
||||
return false;
|
||||
}
|
||||
if(lcg_value() <= $this->itemDropChance){
|
||||
$this->pos->getWorldNonNull()->dropItem($this->pos->add(0.5, 0.5, 0.5), $this->getFramedItem());
|
||||
$this->pos->getWorldNonNull()->dropItem($this->pos->add(0.5, 0.5, 0.5), clone $this->framedItem);
|
||||
}
|
||||
$this->setFramedItem(null);
|
||||
$this->pos->getWorldNonNull()->setBlock($this->pos, $this);
|
||||
|
@ -20,11 +20,6 @@ parameters:
|
||||
count: 1
|
||||
path: ../../../src/block/Block.php
|
||||
|
||||
-
|
||||
message: "#^Parameter \\#2 \\$item of method pocketmine\\\\world\\\\World\\:\\:dropItem\\(\\) expects pocketmine\\\\item\\\\Item, pocketmine\\\\item\\\\Item\\|null given\\.$#"
|
||||
count: 1
|
||||
path: ../../../src/block/ItemFrame.php
|
||||
|
||||
-
|
||||
message: "#^Parameter \\#2 \\$value of method pocketmine\\\\nbt\\\\tag\\\\CompoundTag\\:\\:setInt\\(\\) expects int, int\\|null given\\.$#"
|
||||
count: 4
|
||||
|
Loading…
x
Reference in New Issue
Block a user