From 9899d34b112b9631273f6c8fbb2828bbbe0fd058 Mon Sep 17 00:00:00 2001 From: Daniil Gentili Date: Sat, 28 Dec 2019 03:43:21 +0100 Subject: [PATCH] Fix param type --- src/danog/MadelineProto/MTProtoTools/Files.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/danog/MadelineProto/MTProtoTools/Files.php b/src/danog/MadelineProto/MTProtoTools/Files.php index 8ed655f6..c3afebaf 100644 --- a/src/danog/MadelineProto/MTProtoTools/Files.php +++ b/src/danog/MadelineProto/MTProtoTools/Files.php @@ -1200,14 +1200,14 @@ trait Files * @param string $old_dc Previous DC ID * @param AES $ige IGE decryptor instance * @param callable $cb Status callback - * @param int $offset Offset + * @param array $offset Offset * @param callable $callable Chunk callback * @param boolean $seekable Whether the download file is seekable * @param boolean $postpone Whether to postpone method call * * @return \Generator */ - private function downloadPart(&$message_media, bool &$cdn, &$datacenter, &$old_dc, &$ige, $cb, int $offset, $callable, bool $seekable, bool $postpone = false): \Generator + private function downloadPart(&$message_media, bool &$cdn, &$datacenter, &$old_dc, &$ige, $cb, array $offset, $callable, bool $seekable, bool $postpone = false): \Generator { static $method = [ false => 'upload.getFile', // non-cdn