mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-06 09:56:06 +00:00
PacketBatch::getPackets() may throw PacketDecodeException
This commit is contained in:
@ -40,6 +40,7 @@ class PacketBatch{
|
|||||||
/**
|
/**
|
||||||
* @return \Generator|Packet[]
|
* @return \Generator|Packet[]
|
||||||
* @phpstan-return \Generator<int, Packet, void, void>
|
* @phpstan-return \Generator<int, Packet, void, void>
|
||||||
|
* @throws PacketDecodeException
|
||||||
*/
|
*/
|
||||||
public function getPackets(PacketPool $packetPool, int $max) : \Generator{
|
public function getPackets(PacketPool $packetPool, int $max) : \Generator{
|
||||||
$serializer = new PacketSerializer($this->buffer);
|
$serializer = new PacketSerializer($this->buffer);
|
||||||
|
Reference in New Issue
Block a user