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) {