mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-08 10:53:05 +00:00
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:
@ -69,7 +69,7 @@ class InventoryTransactionPacket extends DataPacket{
|
||||
/** @var \stdClass */
|
||||
public $trData;
|
||||
|
||||
protected function decodePayload(){
|
||||
protected function decodePayload() : void{
|
||||
$this->transactionType = $this->getUnsignedVarInt();
|
||||
|
||||
for($i = 0, $count = $this->getUnsignedVarInt(); $i < $count; ++$i){
|
||||
@ -111,7 +111,7 @@ class InventoryTransactionPacket extends DataPacket{
|
||||
}
|
||||
}
|
||||
|
||||
protected function encodePayload(){
|
||||
protected function encodePayload() : void{
|
||||
$this->putUnsignedVarInt($this->transactionType);
|
||||
|
||||
$this->putUnsignedVarInt(count($this->actions));
|
||||
|
Reference in New Issue
Block a user