From 7c99f0b3e0a3bfb4b7455c8b270b37b7867bfe72 Mon Sep 17 00:00:00 2001 From: juminet Date: Thu, 22 Apr 2021 07:41:36 +0000 Subject: [PATCH] array synatx: array() -> [] --- src/Bundle/ChillMainBundle/Doctrine/Model/Point.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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 ] + ]; } /**