mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-12 21:34:25 +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
|
public function toArrayGeoJson(): array
|
||||||
{
|
{
|
||||||
return array("type" => "Point",
|
return [
|
||||||
"coordinates" => array ($this->lon, $this->lat));
|
"type" => "Point",
|
||||||
|
"coordinates" => [ $this->lon, $this->lat ]
|
||||||
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user