diff --git a/src/Socialbox/SocialClient.php b/src/Socialbox/SocialClient.php index 87ad32e..858be14 100644 --- a/src/Socialbox/SocialClient.php +++ b/src/Socialbox/SocialClient.php @@ -398,9 +398,9 @@ */ public function getSelf(): Peer { - return $this->sendRequest( + return new Peer($this->sendRequest( new RpcRequest(StandardMethods::GET_SELF) - )->getResponse()->getResult(); + )->getResponse()->getResult()); } /**