mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-07 18:44:08 +00:00
array synatx: array() -> []
This commit is contained in:
parent
c089960707
commit
7c99f0b3e0
@ -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 ]
|
||||
];
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user