array synatx: array() -> []

This commit is contained in:
juminet 2021-04-22 07:41:36 +00:00 committed by nobohan
parent c089960707
commit 7c99f0b3e0

View File

@ -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 ]
];
}
/**