Skip to content

Commit

Permalink
Merge pull request #62 from leflings/fix-dao-provider-bug
Browse files Browse the repository at this point in the history
Fix bug in DAOProvider where longitude/latitude was not cast to float
  • Loading branch information
loevgaard authored Mar 25, 2022
2 parents 87bb16a + 77c1aa8 commit 99b8fda
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/Provider/DAOProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -112,8 +112,9 @@ private function populatePickupPoint(array $servicePoint): PickupPointInterface
$pickupPoint->setZipCode($servicePoint['postnr']);
$pickupPoint->setCity($servicePoint['bynavn']);
$pickupPoint->setCountry($countryCode);
$pickupPoint->setLatitude($servicePoint['latitude']);
$pickupPoint->setLongitude($servicePoint['longitude']);

$pickupPoint->setLatitude((float) $servicePoint['latitude']);
$pickupPoint->setLongitude((float) $servicePoint['longitude']);

return $pickupPoint;
}
Expand Down

0 comments on commit 99b8fda

Please sign in to comment.