From 78bebcdab4f0492a01ad8a8b1a400d81dc363f5b Mon Sep 17 00:00:00 2001 From: Kamron Brooks Date: Tue, 22 Sep 2020 23:18:07 +1000 Subject: [PATCH] Fix for Settings element not Parsing The PayrollAU\Settings endpoint is 1D the same as Payslip / Payitems, or at least editing it in the way I have makes it work properly. Sorry I don't know how to check if it works with \PayrollUS or \Assets or if there are other \Settings objects to look out for --- src/XeroPHP/Remote/Response.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/XeroPHP/Remote/Response.php b/src/XeroPHP/Remote/Response.php index 9d2ee7ee..62c9a0da 100644 --- a/src/XeroPHP/Remote/Response.php +++ b/src/XeroPHP/Remote/Response.php @@ -323,6 +323,7 @@ public function parseXML() break; case 'Payslip': case 'PayItems': + case 'Settings': // some xero endpoints are 1D so we can parse them straight away $this->elements[] = Helpers::XMLToArray($root_child);