Skip to content

Commit

Permalink
Move timezone maps to separate file.
Browse files Browse the repository at this point in the history
Adjust type hint.
  • Loading branch information
rw4lll committed Jul 8, 2022
1 parent b215bee commit 7ee114a
Show file tree
Hide file tree
Showing 3 changed files with 296 additions and 297 deletions.
2 changes: 1 addition & 1 deletion src/Event.php
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ public function toArray(array $customFields = []): array

if(!empty($customFields)) {
foreach ($customFields as $key => $value) {
$result[$key] = $this->{$value};
$result[$key] = $this->{$value} ?? null;
}
}

Expand Down
Loading

0 comments on commit 7ee114a

Please sign in to comment.