PacketPool: missing @throws

This commit is contained in:
Dylan K. Taylor 2019-02-28 17:15:06 +00:00
parent 08e799c35a
commit c9eb642afd

View File

@ -24,6 +24,7 @@ declare(strict_types=1);
namespace pocketmine\network\mcpe\protocol;
use pocketmine\utils\Binary;
use pocketmine\utils\BinaryDataException;
class PacketPool{
/** @var \SplFixedArray<DataPacket> */
@ -175,6 +176,7 @@ class PacketPool{
* @param string $buffer
*
* @return DataPacket
* @throws BinaryDataException
*/
public static function getPacket(string $buffer) : DataPacket{
$offset = 0;