1
0
mirror of https://github.com/danog/MadelineProto.git synced 2024-11-26 17:04:39 +01:00

Bump for psalm

This commit is contained in:
Daniil Gentili 2024-08-15 18:25:46 +02:00
parent 5d4c717031
commit c163bd7abf
2 changed files with 2 additions and 0 deletions

View File

@ -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;
}

View File

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