mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-06 17:59:48 +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:
@ -27,7 +27,7 @@ class PacketPool{
|
||||
/** @var \SplFixedArray<DataPacket> */
|
||||
protected static $pool = null;
|
||||
|
||||
public static function init(){
|
||||
public static function init() : void{
|
||||
static::$pool = new \SplFixedArray(256);
|
||||
|
||||
//Normal packets
|
||||
@ -148,7 +148,7 @@ class PacketPool{
|
||||
/**
|
||||
* @param DataPacket $packet
|
||||
*/
|
||||
public static function registerPacket(DataPacket $packet){
|
||||
public static function registerPacket(DataPacket $packet) : void{
|
||||
static::$pool[$packet->pid()] = clone $packet;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user