From 4b3358b344c93dea9cae0d391a348da7456c7b85 Mon Sep 17 00:00:00 2001 From: Brett Bailey Date: Wed, 17 Jul 2024 10:11:48 +1000 Subject: [PATCH] Fixed to handle the newest value of the pagination response --- src/XeroPHP/Remote/Response.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/XeroPHP/Remote/Response.php b/src/XeroPHP/Remote/Response.php index b5570187..db818ec8 100644 --- a/src/XeroPHP/Remote/Response.php +++ b/src/XeroPHP/Remote/Response.php @@ -318,6 +318,7 @@ public function parseXML() foreach ($sxml as $child_index => $root_child) { switch ($child_index) { case 'PageInfo': + case 'pagination': // TODO: We can potentially handle the page info and make it a value on the response object break; case 'ErrorNumber': @@ -365,6 +366,7 @@ public function parseJSON() foreach ($json as $child_index => $root_child) { switch ($child_index) { case 'PageInfo': + case 'pagination': // TODO: We can potentially handle the page info and make it a value on the response object break; case 'ErrorNumber':