diff --git a/composer.json b/composer.json index c1d097d..a76ff8f 100644 --- a/composer.json +++ b/composer.json @@ -24,8 +24,8 @@ } }, "require": { - "guzzlehttp/guzzle": "^6.3", - "league/flysystem": "^1.0", + "guzzlehttp/guzzle": "^6.3|^7.0", + "league/flysystem": "^1.0|^3.0", "ext-openssl": "*", "ext-json": "*" } diff --git a/src/Client.php b/src/Client.php index ecc2ec0..013e25e 100644 --- a/src/Client.php +++ b/src/Client.php @@ -357,7 +357,7 @@ public function getAccount(): Account $data = json_decode((string)$response->getBody(), true); $accountURL = $response->getHeaderLine('Location'); $date = (new \DateTime())->setTimestamp(strtotime($data['createdAt'])); - return new Account($data['contact'], $date, ($data['status'] == 'valid'), $data['initialIp'], $accountURL); + return new Account($data['contact'], $date, ($data['status'] == 'valid'), $accountURL); } /** diff --git a/src/Data/Account.php b/src/Data/Account.php index 9a957c8..3b59f42 100644 --- a/src/Data/Account.php +++ b/src/Data/Account.php @@ -43,10 +43,8 @@ public function __construct( array $contact, \DateTime $createdAt, bool $isValid, - string $initialIp, string $accountURL ) { - $this->initialIp = $initialIp; $this->contact = $contact; $this->createdAt = $createdAt; $this->isValid = $isValid;