diff --git a/VKAPI/Handlers/Account.php b/VKAPI/Handlers/Account.php index 5473111f..0ac810a3 100644 --- a/VKAPI/Handlers/Account.php +++ b/VKAPI/Handlers/Account.php @@ -176,7 +176,7 @@ final class Account extends VKAPIRequestHandler try { $user->save(); - } catch(\TypeError $e) { + } catch (\TypeError $e) { $output["changed"] = 0; } } diff --git a/VKAPI/Handlers/Groups.php b/VKAPI/Handlers/Groups.php index 6492ca20..8933ca5a 100644 --- a/VKAPI/Handlers/Groups.php +++ b/VKAPI/Handlers/Groups.php @@ -245,7 +245,7 @@ final class Groups extends VKAPIRequestHandler $response[$i]->suggested_count = $clb->getSuggestedPostsCount($this->getUser()); break; case "contacts": - $contacts; + $contacts = []; $contactTmp = $clb->getManagers(1, true); foreach ($contactTmp as $contact) {