cast result as object
This commit is contained in:
@@ -47,7 +47,7 @@ class Accounts implements API
|
|||||||
|
|
||||||
$this->body = $response->getBody();
|
$this->body = $response->getBody();
|
||||||
|
|
||||||
return json_decode($this->body)->result;
|
return (object)['result' => $this->body->result];
|
||||||
}
|
}
|
||||||
|
|
||||||
public function getDomainDetails(string $accountID, string $domainName): \stdClass
|
public function getDomainDetails(string $accountID, string $domainName): \stdClass
|
||||||
@@ -56,6 +56,6 @@ class Accounts implements API
|
|||||||
|
|
||||||
$this->body = $response->getBody();
|
$this->body = $response->getBody();
|
||||||
|
|
||||||
return json_decode($this->body)->result;
|
return (object)['result' => $this->body->result];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user