We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dd565b2 commit cc4418bCopy full SHA for cc4418b
lib/PaymentRails/ResourceCollection.php
@@ -40,6 +40,7 @@ class ResourceCollection implements Iterator
40
*/
41
public function __construct($response, $items, $pager)
42
{
43
+ // Add "meta" fields only when they exist in JSON response
44
$this->_page = isset($response["meta"]) ? $response["meta"]["page"] : null;
45
$this->_items = $items;
46
$this->_records = isset($response["meta"]) ? $response["meta"]["records"] : null;
0 commit comments