diff --git a/src/Bundle/ChillMainBundle/Doctrine/Model/Point.php b/src/Bundle/ChillMainBundle/Doctrine/Model/Point.php index a69d3282d..3ef5fe768 100644 --- a/src/Bundle/ChillMainBundle/Doctrine/Model/Point.php +++ b/src/Bundle/ChillMainBundle/Doctrine/Model/Point.php @@ -32,8 +32,10 @@ class Point implements JsonSerializable { public function toArrayGeoJson(): array { - return array("type" => "Point", - "coordinates" => array ($this->lon, $this->lat)); + return [ + "type" => "Point", + "coordinates" => [ $this->lon, $this->lat ] + ]; } /**