From 71b9c570302fea9a00f2846dac2934714b929650 Mon Sep 17 00:00:00 2001 From: veselcraft Date: Wed, 10 Aug 2022 23:09:07 +0300 Subject: [PATCH] VKAPI: Fix funny bug when id is outputed as string if profile is deactivated Closes #637 --- VKAPI/Handlers/Users.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/VKAPI/Handlers/Users.php b/VKAPI/Handlers/Users.php index 30d220d6..572aefd7 100644 --- a/VKAPI/Handlers/Users.php +++ b/VKAPI/Handlers/Users.php @@ -27,7 +27,7 @@ final class Users extends VKAPIRequestHandler $usr = $users->get((int) $usrs[$i]); if(is_null($usr) || $usr->isDeleted()) { $response[$i] = (object)[ - "id" => $usrs[$i], + "id" => (int) $usrs[$i], "first_name" => "DELETED", "last_name" => "", "deactivated" => "deleted"