From c163bd7abf96597066ffd640de7d2a78c361d30a Mon Sep 17 00:00:00 2001 From: Daniil Gentili Date: Thu, 15 Aug 2024 18:25:46 +0200 Subject: [PATCH] Bump for psalm --- src/MTProtoTools/PeerHandler.php | 1 + src/TL/TL.php | 1 + 2 files changed, 2 insertions(+) diff --git a/src/MTProtoTools/PeerHandler.php b/src/MTProtoTools/PeerHandler.php index 3e3370656..494b58097 100644 --- a/src/MTProtoTools/PeerHandler.php +++ b/src/MTProtoTools/PeerHandler.php @@ -933,6 +933,7 @@ trait PeerHandler } } sort($ids, SORT_NUMERIC); + /** @psalm-suppress MixedArgumentTypeCoercion Typechecks are done inside */ $gres['hash'] = Tools::genVectorHash($ids); $this->channelParticipants[$this->participantsKey($channel, $filter, $q, $offset, $limit)] = $gres; } diff --git a/src/TL/TL.php b/src/TL/TL.php index 8422113a1..ce16859bb 100644 --- a/src/TL/TL.php +++ b/src/TL/TL.php @@ -443,6 +443,7 @@ final class TL implements TLInterface return substr($object, 1); } if (\is_array($object) && $type['name'] === 'hash') { + /** @psalm-suppress MixedArgumentTypeCoercion Typechecks are done inside */ return Tools::genVectorHash($object); } if (\is_array($object) && \count($object) === 2) {