mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-18 15:05:56 +00:00
fix phpstan
This commit is contained in:
parent
01c7e2de53
commit
310ca684fa
@ -37,6 +37,7 @@ use pocketmine\entity\projectile\SplashPotion;
|
||||
use pocketmine\event\block\CampfireCookEvent;
|
||||
use pocketmine\event\entity\EntityDamageByBlockEvent;
|
||||
use pocketmine\event\entity\EntityDamageEvent;
|
||||
use pocketmine\inventory\Inventory;
|
||||
use pocketmine\item\Durable;
|
||||
use pocketmine\item\enchantment\VanillaEnchantments;
|
||||
use pocketmine\item\Item;
|
||||
|
@ -51,7 +51,7 @@ final class EnchantingTableInventoryWindow extends BlockInventoryWindow{
|
||||
){
|
||||
parent::__construct($viewer, new SimpleInventory(2), $holder);
|
||||
|
||||
/** @phpstan-var \WeakReference<self> $weakThis */
|
||||
/** @phpstan-var \WeakReference<$this> $weakThis */
|
||||
$weakThis = \WeakReference::create($this);
|
||||
$this->listener = new CallbackInventoryListener(
|
||||
onSlotChange: static function(Inventory $_, int $slot) use ($weakThis) : void{ //remaining params unneeded
|
||||
|
Loading…
x
Reference in New Issue
Block a user