Skip to content

Commit

Permalink
Bump for psalm
Browse files Browse the repository at this point in the history
  • Loading branch information
danog committed Aug 15, 2024
1 parent 5d4c717 commit c163bd7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/MTProtoTools/PeerHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -933,6 +933,7 @@ private function storeParticipantsCache(array $gres, int $channel, string $filte
}
}
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;
}
Expand Down
1 change: 1 addition & 0 deletions src/TL/TL.php
Original file line number Diff line number Diff line change
Expand Up @@ -443,6 +443,7 @@ public function serializeObject(array $type, mixed $object, string|int $ctx, int
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) {
Expand Down

0 comments on commit c163bd7

Please sign in to comment.