Skip to content

Commit 310ca68

Browse files
committed
fix phpstan
1 parent 01c7e2d commit 310ca68

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/block/Campfire.php

+1
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@
3737
use pocketmine\event\block\CampfireCookEvent;
3838
use pocketmine\event\entity\EntityDamageByBlockEvent;
3939
use pocketmine\event\entity\EntityDamageEvent;
40+
use pocketmine\inventory\Inventory;
4041
use pocketmine\item\Durable;
4142
use pocketmine\item\enchantment\VanillaEnchantments;
4243
use pocketmine\item\Item;

src/block/inventory/window/EnchantingTableInventoryWindow.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ public function __construct(
5151
){
5252
parent::__construct($viewer, new SimpleInventory(2), $holder);
5353

54-
/** @phpstan-var \WeakReference<self> $weakThis */
54+
/** @phpstan-var \WeakReference<$this> $weakThis */
5555
$weakThis = \WeakReference::create($this);
5656
$this->listener = new CallbackInventoryListener(
5757
onSlotChange: static function(Inventory $_, int $slot) use ($weakThis) : void{ //remaining params unneeded

0 commit comments

Comments
 (0)