Skip to content

Commit 5a42138

Browse files
Muhammad AnasSkaelv
authored andcommitted
Fix another fatal error while fetching the next page of a result set.
Fatal error: Cannot use object of type stdClass as array in src\IntercomClient.php on line 117
1 parent 7427b06 commit 5a42138

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/IntercomClient.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ public function post($endpoint, $json)
110110
]);
111111
return $this->handleResponse($response);
112112
}
113-
113+
114114
/**
115115
* Sends PUT request to Intercom API.
116116
* @param string $endpoint
@@ -175,7 +175,7 @@ public function get($endpoint, $query)
175175
*/
176176
public function nextPage($pages)
177177
{
178-
$response = $this->http_client->request('GET', $pages['next'], [
178+
$response = $this->http_client->request('GET', $pages->next, [
179179
'auth' => $this->getAuth(),
180180
'headers' => [
181181
'Accept' => 'application/json'

0 commit comments

Comments
 (0)