mirror of
https://github.com/shlinkio/shlink.git
synced 2026-03-12 01:54:41 +08:00
Changed latitude and longitude to float
This commit is contained in:
@@ -11,14 +11,14 @@ final class UnknownVisitLocation implements VisitLocationInterface
|
||||
return 'Unknown';
|
||||
}
|
||||
|
||||
public function getLatitude(): string
|
||||
public function getLatitude(): float
|
||||
{
|
||||
return '0.0';
|
||||
return 0.0;
|
||||
}
|
||||
|
||||
public function getLongitude(): string
|
||||
public function getLongitude(): float
|
||||
{
|
||||
return '0.0';
|
||||
return 0.0;
|
||||
}
|
||||
|
||||
public function getCityName(): string
|
||||
@@ -33,8 +33,8 @@ final class UnknownVisitLocation implements VisitLocationInterface
|
||||
'countryName' => 'Unknown',
|
||||
'regionName' => 'Unknown',
|
||||
'cityName' => 'Unknown',
|
||||
'latitude' => '0.0',
|
||||
'longitude' => '0.0',
|
||||
'latitude' => 0.0,
|
||||
'longitude' => 0.0,
|
||||
'timezone' => 'Unknown',
|
||||
];
|
||||
}
|
||||
|
||||
@@ -10,9 +10,9 @@ interface VisitLocationInterface extends JsonSerializable
|
||||
{
|
||||
public function getCountryName(): string;
|
||||
|
||||
public function getLatitude(): string;
|
||||
public function getLatitude(): float;
|
||||
|
||||
public function getLongitude(): string;
|
||||
public function getLongitude(): float;
|
||||
|
||||
public function getCityName(): string;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user