diff --git a/src/XeroTenant.php b/src/XeroTenant.php index 457bcb8..5374f77 100644 --- a/src/XeroTenant.php +++ b/src/XeroTenant.php @@ -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; }