cast result as object

This commit is contained in:
Kyle Yee
2019-01-28 11:35:58 +08:00
parent dde2de4495
commit fb45932677

View File

@@ -47,7 +47,7 @@ class Accounts implements API
$this->body = $response->getBody();
return json_decode($this->body)->result;
return (object)['result' => $this->body->result];
}
public function getDomainDetails(string $accountID, string $domainName): \stdClass
@@ -56,6 +56,6 @@ class Accounts implements API
$this->body = $response->getBody();
return json_decode($this->body)->result;
return (object)['result' => $this->body->result];
}
}