mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-05-15 10:19:39 +00:00
PacketBatch::getPackets() may throw PacketDecodeException
This commit is contained in:
parent
8402465fd2
commit
5910905e95
@ -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);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user