Item: fixed foreach doc comment in deserializeCompoundTag()

detected by PHPStan 0.12.0
This commit is contained in:
Dylan K. Taylor 2019-12-04 11:28:59 +00:00
parent dc5d985cf4
commit 66aa940ed1

View File

@ -316,7 +316,7 @@ class Item implements \JsonSerializable{
$this->canPlaceOn = new Set();
$canPlaceOn = $tag->getListTag("CanPlaceOn");
if($canPlaceOn !== null){
/** @var StringTag $tag */
/** @var StringTag $entry */
foreach($canPlaceOn as $entry){
$this->canPlaceOn->add($entry->getValue());
}