fix: undefined fields

This commit is contained in:
mrilyew 2025-05-27 14:43:33 +03:00 committed by Alexander Minkin
parent 6e87ac3e38
commit 53115cb946
2 changed files with 1 additions and 2 deletions

View file

@ -37,7 +37,6 @@ final class Gifts extends VKAPIRequestHandler
foreach ($user_gifts as $gift) {
$gift_item[] = [
"id" => $i,
"from_id" => $gift->anon == true ? 0 : $gift->sender->getId(),
"message" => $gift->caption == null ? "" : $gift->caption,
"date" => $gift->sent->timestamp(),

View file

@ -106,7 +106,7 @@ final class Notes extends VKAPIRequestHandler
return 1;
}
public function get(int $user_id, string $note_ids = "", int $offset = 0, int $count = 10)
public function get(int $user_id, string $note_ids = "", int $offset = 0, int $count = 10, int $sort = 0)
{
$this->requireUser();