From: Raphaƫl Gertz Date: Fri, 8 Mar 2024 02:10:35 +0000 (+0100) Subject: Fix location latitude and longitude field type X-Git-Tag: 0.4.0~10 X-Git-Url: https://git.rapsys.eu/airbundle/commitdiff_plain/8af69ac700a76d252d0c2beceaeee29b41f5d483?ds=sidebyside Fix location latitude and longitude field type --- diff --git a/Entity/Location.php b/Entity/Location.php index f0e1a17..62ef9fc 100644 --- a/Entity/Location.php +++ b/Entity/Location.php @@ -57,7 +57,7 @@ class Location { /** * Constructor */ - public function __construct(private string $title = '', private string $address = '', private string $zipcode = '', private string $city = '', private float $latitude = 0, private float $longitude = 0, private bool $hotspot = false, private bool $indoor = false) { + public function __construct(private string $title = '', private string $address = '', private string $zipcode = '', private string $city = '', private string $latitude = '0', private string $longitude = '0', private bool $hotspot = false, private bool $indoor = false) { //Set defaults $this->created = new \DateTime('now'); $this->updated = new \DateTime('now');