Skip to content

Commit

Permalink
Hotfix
Browse files Browse the repository at this point in the history
  • Loading branch information
calcinai committed Apr 1, 2020
1 parent b062322 commit 6c471b0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/XeroPHP/Helpers.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
namespace XeroPHP;

use XeroPHP\Models\Accounting\TrackingCategory;
use XeroPHP\Models\PayrollUS\Paystub\TimesheetEarningsLine;

/**
* Unfortunate class for methods that don't really have a home.
Expand Down Expand Up @@ -86,7 +87,7 @@ public static function XMLToArray(\SimpleXMLElement $sxml)
if ($child_name === $singular_node_name ||
//Handle strange XML
($singular_node_name === 'Tracking' && $child_name === TrackingCategory::getRootNodeName()) ||
($singular_node_name == Payslip\TimesheetEarningsLine::getRootNodeName() && $child_name == 'EarningsLine')) {
($singular_node_name == TimesheetEarningsLine::getRootNodeName() && $child_name == 'EarningsLine')) {
$output[] = $node;
} else {
$output[$child_name] = $node;
Expand Down

0 comments on commit 6c471b0

Please sign in to comment.