From 53115cb946c784a4d396353ac12ff746ed59ccb7 Mon Sep 17 00:00:00 2001 From: mrilyew <99399973+mrilyew@users.noreply.github.com> Date: Tue, 27 May 2025 14:43:33 +0300 Subject: [PATCH] fix: undefined fields --- VKAPI/Handlers/Gifts.php | 1 - VKAPI/Handlers/Notes.php | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/VKAPI/Handlers/Gifts.php b/VKAPI/Handlers/Gifts.php index e95493ef..9ee5d222 100644 --- a/VKAPI/Handlers/Gifts.php +++ b/VKAPI/Handlers/Gifts.php @@ -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(), diff --git a/VKAPI/Handlers/Notes.php b/VKAPI/Handlers/Notes.php index 1ddb67be..9e07454e 100644 --- a/VKAPI/Handlers/Notes.php +++ b/VKAPI/Handlers/Notes.php @@ -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();