Apply typehints to pocketmine\network\mcpe\protocol namespace

this is pulled from network-nuke in order to reduce the size of the diff.
This commit is contained in:
Dylan K. Taylor
2018-07-05 13:19:15 +01:00
parent fbd4f4a849
commit 2bba3a0805
116 changed files with 255 additions and 255 deletions

View File

@ -36,7 +36,7 @@ class InventoryContentPacket extends DataPacket{
/** @var Item[] */
public $items = [];
protected function decodePayload(){
protected function decodePayload() : void{
$this->windowId = $this->getUnsignedVarInt();
$count = $this->getUnsignedVarInt();
for($i = 0; $i < $count; ++$i){
@ -44,7 +44,7 @@ class InventoryContentPacket extends DataPacket{
}
}
protected function encodePayload(){
protected function encodePayload() : void{
$this->putUnsignedVarInt($this->windowId);
$this->putUnsignedVarInt(count($this->items));
foreach($this->items as $item){