Skip to content

Commit 7e0907c

Browse files
authored
Merge pull request #5 from nathan-io:patch-2
Fix undefined variable in toArray() method
2 parents e2e8296 + 9078471 commit 7e0907c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Timezones/Timezones.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ public function toArray()
194194
}
195195

196196
// Add all timezone of the regions to return
197-
foreach ($this->continents as $continent => $mask) {
197+
foreach ($this->regions as $continent => $mask) {
198198
$timezones = DateTimeZone::listIdentifiers($mask);
199199
foreach ($timezones as $timezone) {
200200
$list[$continent][$timezone] = $this->formatTimezone($timezone, $continent);

0 commit comments

Comments
 (0)