ItemFactory: fix var type doc in get()

This commit is contained in:
Dylan K. Taylor 2019-12-12 13:54:44 +00:00
parent 89458660cf
commit 137245ed7b

View File

@ -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)])){