diff --git a/src/entity/Entity.php b/src/entity/Entity.php index c3ac15109..c90930eed 100644 --- a/src/entity/Entity.php +++ b/src/entity/Entity.php @@ -1645,6 +1645,7 @@ abstract class Entity{ /** * @return MetadataProperty[] + * @phpstan-return array */ final protected function getSyncedNetworkData(bool $dirtyOnly) : array{ $this->syncNetworkData($this->networkProperties); diff --git a/src/entity/EntityDataHelper.php b/src/entity/EntityDataHelper.php index cf70e29eb..e4632aa07 100644 --- a/src/entity/EntityDataHelper.php +++ b/src/entity/EntityDataHelper.php @@ -45,6 +45,7 @@ final class EntityDataHelper{ if(!($yawPitch instanceof ListTag) or $yawPitch->getTagType() !== NBT::TAG_Float){ throw new \UnexpectedValueException("'Rotation' should be a List"); } + /** @var FloatTag[] $values */ $values = $yawPitch->getValue(); if(count($values) !== 2){ throw new \UnexpectedValueException("Expected exactly 2 entries for 'Rotation'");