mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-07-04 09:10:00 +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();
|
$this->canPlaceOn = new Set();
|
||||||
$canPlaceOn = $tag->getListTag("CanPlaceOn");
|
$canPlaceOn = $tag->getListTag("CanPlaceOn");
|
||||||
if($canPlaceOn !== null){
|
if($canPlaceOn !== null){
|
||||||
/** @var StringTag $tag */
|
/** @var StringTag $entry */
|
||||||
foreach($canPlaceOn as $entry){
|
foreach($canPlaceOn as $entry){
|
||||||
$this->canPlaceOn->add($entry->getValue());
|
$this->canPlaceOn->add($entry->getValue());
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user