Skip to content

Commit

Permalink
Merge pull request #16 from StoyanPenev/master
Browse files Browse the repository at this point in the history
Fix XeroTenant: updatedDateUtc always null.
  • Loading branch information
calcinai authored Nov 11, 2021
2 parents 5773c09 + 6acd106 commit e03accb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/XeroTenant.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ public static function fromArray($data)
$self->tenantType = $data['tenantType'];
$self->tenantName = $data['tenantName'];
$self->createdDateUtc = new \DateTime($data['createdDateUtc']);
$self->updatedDateUtc = $self->updatedDateUtc ? new \DateTime($data['updatedDateUtc']) : null;
$self->updatedDateUtc = isset($data['updatedDateUtc']) ? new \DateTime($data['updatedDateUtc']) : null;

return $self;
}
Expand Down

0 comments on commit e03accb

Please sign in to comment.