From 77c1aa895e4017561a0a54cf151d3d947910d9b7 Mon Sep 17 00:00:00 2001 From: Flemming Madsen Date: Fri, 25 Mar 2022 07:33:03 +0100 Subject: [PATCH] Fix bug in DAOProvider where longitude/latitude was not cast to float --- src/Provider/DAOProvider.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/Provider/DAOProvider.php b/src/Provider/DAOProvider.php index f7193c7..767d51b 100644 --- a/src/Provider/DAOProvider.php +++ b/src/Provider/DAOProvider.php @@ -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; }