Skip to content
Snippets Groups Projects
Commit 80f332b9 authored by efalcy's avatar efalcy
Browse files

php5 compat

parent 846f9d1a
Branches
No related merge requests found
...@@ -57,7 +57,7 @@ class Geo extends Property ...@@ -57,7 +57,7 @@ class Geo extends Property
* *
* @return Geo * @return Geo
*/ */
public static function fromString(string $geoLocationString) public static function fromString($geoLocationString)
{ {
$geoLocationString = str_replace(',', ';', $geoLocationString); $geoLocationString = str_replace(',', ';', $geoLocationString);
$parts = explode(';', $geoLocationString); $parts = explode(';', $geoLocationString);
...@@ -74,7 +74,7 @@ class Geo extends Property ...@@ -74,7 +74,7 @@ class Geo extends Property
* *
* @return string * @return string
*/ */
public function getGeoLocationAsString(string $separator = ';') public function getGeoLocationAsString($separator = ';')
{ {
return number_format($this->latitude, 6) . $separator . number_format($this->longitude, 6); return number_format($this->latitude, 6) . $separator . number_format($this->longitude, 6);
} }
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment