fixed VkApiClient
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user