diff --git a/src/item/ItemFactory.php b/src/item/ItemFactory.php index 3198d2ec3..eb64616c4 100644 --- a/src/item/ItemFactory.php +++ b/src/item/ItemFactory.php @@ -410,7 +410,7 @@ class ItemFactory{ * @throws \InvalidArgumentException */ public static function get(int $id, int $meta = 0, int $count = 1, ?CompoundTag $tags = null) : Item{ - /** @var Item $item */ + /** @var Item|null $item */ $item = null; if($meta !== -1){ if(isset(self::$list[$offset = self::getListOffset($id, $meta)])){