Skip to content

Commit 7427b06

Browse files
Muhammad AnasSkaelv
authored andcommitted
Fix the example code snippet in README.md about pagination.
The response returned from the API methods is decoded into an object of stdClass and not an associative array. Therefore, Current example was resulting in "Fatal error: Cannot use object of type stdClass as array"
1 parent 702df7a commit 7427b06

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,7 @@ When listing, the Intercom API may return a pagination object:
296296
You can grab the next page of results using the client:
297297

298298
```php
299-
$client->nextPage($response["pages"]);
299+
$client->nextPage($response->pages);
300300
```
301301

302302

0 commit comments

Comments
 (0)