Skip to content

Commit 9e1fe43

Browse files
committed
getJson() => getParsedContents()
1 parent acfbdbc commit 9e1fe43

File tree

3 files changed

+59
-57
lines changed

3 files changed

+59
-57
lines changed

composer.lock

Lines changed: 56 additions & 54 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/AsyncClient.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ public function profile(): PromiseInterface
129129
return $this->client->handle(new RequestCommand(
130130
new Request('GET', 'account/verify_credentials.json')
131131
))->then(function (ResponseInterface $response) {
132-
return resolve($this->client->handle(new HydrateCommand('Profile', $response->getBody()->getJson())));
132+
return resolve($this->client->handle(new HydrateCommand('Profile', $response->getBody()->getParsedContents())));
133133
});
134134
}
135135

@@ -138,7 +138,7 @@ public function user(string $user): PromiseInterface
138138
return $this->client->handle(new RequestCommand(
139139
new Request('GET', 'users/show.json?screen_name=' . $user)
140140
))->then(function (ResponseInterface $response) {
141-
return resolve($this->client->handle(new HydrateCommand('User', $response->getBody()->getJson())));
141+
return resolve($this->client->handle(new HydrateCommand('User', $response->getBody()->getParsedContents())));
142142
});
143143
}
144144

src/Resource/Async/Profile.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ public function putProfile(): PromiseInterface
2424
return $this->handleCommand(new RequestCommand(
2525
new Request('POST', $uri)
2626
))->then(function (ResponseInterface $response) {
27-
return resolve($this->handleCommand(new HydrateCommand('Profile', $response->getBody()->getJson())));
27+
return resolve($this->handleCommand(new HydrateCommand('Profile', $response->getBody()->getParsedContents())));
2828
});
2929
}
3030

0 commit comments

Comments
 (0)