mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-22 08:44:01 +00:00
Item: fixed foreach doc comment in deserializeCompoundTag()
detected by PHPStan 0.12.0
This commit is contained in:
parent
dc5d985cf4
commit
66aa940ed1
@ -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());
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user