fixed VkApiClient

This commit is contained in:
amikhaylov
2026-05-28 11:56:23 +03:00
parent 9f39390d6c
commit b3e9912fd8
+3 -1
View File
@@ -29,10 +29,12 @@ final class VkApiClient
]),
]);
$result = json_decode($response->getBody()->getContents(), true);
if (isset($result['error'])) {
throw new Exception("VK API Error: " . $result['error']['error_msg']);
}
return json_decode($response->getBody()->getContents(), true);
return $result;
}
}