From e18577c90da8c7c6011ed072cf9f9cabea369828 Mon Sep 17 00:00:00 2001 From: Bob Brown Date: Thu, 18 Jul 2024 16:24:31 +1200 Subject: [PATCH] Update Response.php Ignore pagination element in response. --- src/XeroPHP/Remote/Response.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/XeroPHP/Remote/Response.php b/src/XeroPHP/Remote/Response.php index b5570187..c12bf9b0 100644 --- a/src/XeroPHP/Remote/Response.php +++ b/src/XeroPHP/Remote/Response.php @@ -320,6 +320,9 @@ public function parseXML() case 'PageInfo': // TODO: We can potentially handle the page info and make it a value on the response object break; + case 'pagination': + // introduced in https://github.com/XeroAPI/xero-node/releases/tag/9.0.0 but not supported here yet + break; case 'ErrorNumber': $this->root_error['code'] = (string)$root_child; @@ -367,6 +370,9 @@ public function parseJSON() case 'PageInfo': // TODO: We can potentially handle the page info and make it a value on the response object break; + case 'pagination': + // introduced in https://github.com/XeroAPI/xero-node/releases/tag/9.0.0 but not supported here yet + break; case 'ErrorNumber': $this->root_error['code'] = $root_child;