Skip to content

Commit

Permalink
Merge pull request #161 from craigpaul/master
Browse files Browse the repository at this point in the history
Fixes incorrect property access on MaxMind driver when passing off in…
  • Loading branch information
stevebauman authored Jan 29, 2024
2 parents 53daf2b + ddbb0bf commit b9cadaf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Drivers/MaxMind.php
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ protected function hydrate(Position $position, Fluent $location): Position
$position->cityName = $location->city;
$position->postalCode = $location->postal;
$position->metroCode = $location->metro_code;
$position->timezone = $location->time_zone;
$position->timezone = $location->timezone;
$position->latitude = $location->latitude;
$position->longitude = $location->longitude;

Expand Down
4 changes: 2 additions & 2 deletions tests/MaxMindTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
'metro_code' => '5555',
'latitude' => '50',
'longitude' => '50',
'time_zone' => 'America/Toronto',
'timezone' => 'America/Toronto',
];

$driver
Expand Down Expand Up @@ -81,7 +81,7 @@
'longitude' => '-1.25',
'metroCode' => '',
'areaCode' => null,
'timezone' => null,
'timezone' => 'Europe/London',
'driver' => "Stevebauman\Location\Drivers\MaxMind",
]);
});
Expand Down

0 comments on commit b9cadaf

Please sign in to comment.