]> Raphaël G. Git Repositories - airbundle/commitdiff
Fix location latitude and longitude field type
authorRaphaël Gertz <git@rapsys.eu>
Fri, 8 Mar 2024 02:10:35 +0000 (03:10 +0100)
committerRaphaël Gertz <git@rapsys.eu>
Fri, 8 Mar 2024 02:10:35 +0000 (03:10 +0100)
Entity/Location.php

index f0e1a179dd9cc6969b407edc51a6d574f89e3053..62ef9fc60bdae7ec8686cd4310a3021f2b79d43b 100644 (file)
@@ -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');