Fix GeocodingHelper type-hinting (#14604)

* Fix GeocodingHelper type-hinting

* Update GeocodingHelper.php
This commit is contained in:
Jellyfrog
2022-11-09 17:10:04 +01:00
committed by GitHub
parent 96c7e7166e
commit f411c1a6a7

View File

@@ -80,7 +80,7 @@ trait GeocodingHelper
* @param array $data
* @return array
*/
abstract protected function parseLatLng($data);
abstract protected function parseLatLng(array $data): array;
/**
* Build Guzzle request option array
@@ -90,5 +90,5 @@ trait GeocodingHelper
*
* @throws \Exception you may throw an Exception if validation fails
*/
abstract protected function buildGeocodingOptions($address);
abstract protected function buildGeocodingOptions(string $address): array;
}