Item: drop useless @var confusing PHPStan

This commit is contained in:
Dylan K. Taylor 2020-02-05 20:55:58 +00:00
parent 1a5228e7a6
commit 4518d9d9ce

View File

@ -438,7 +438,6 @@ class Item implements ItemIds, \JsonSerializable{
return $this->clearCustomName();
}
/** @var CompoundTag $display */
$display = $this->getNamedTagEntry(self::TAG_DISPLAY);
if(!($display instanceof CompoundTag)){
$display = new CompoundTag(self::TAG_DISPLAY);