Skip to content

Commit c163bd7

Browse files
committed
Bump for psalm
1 parent 5d4c717 commit c163bd7

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

‎src/MTProtoTools/PeerHandler.php

+1
Original file line numberDiff line numberDiff line change
@@ -933,6 +933,7 @@ private function storeParticipantsCache(array $gres, int $channel, string $filte
933933
}
934934
}
935935
sort($ids, SORT_NUMERIC);
936+
/** @psalm-suppress MixedArgumentTypeCoercion Typechecks are done inside */
936937
$gres['hash'] = Tools::genVectorHash($ids);
937938
$this->channelParticipants[$this->participantsKey($channel, $filter, $q, $offset, $limit)] = $gres;
938939
}

‎src/TL/TL.php

+1
Original file line numberDiff line numberDiff line change
@@ -443,6 +443,7 @@ public function serializeObject(array $type, mixed $object, string|int $ctx, int
443443
return substr($object, 1);
444444
}
445445
if (\is_array($object) && $type['name'] === 'hash') {
446+
/** @psalm-suppress MixedArgumentTypeCoercion Typechecks are done inside */
446447
return Tools::genVectorHash($object);
447448
}
448449
if (\is_array($object) && \count($object) === 2) {

0 commit comments

Comments
 (0)