diff --git a/src/Provider/BingMaps/BingMaps.php b/src/Provider/BingMaps/BingMaps.php index 2eecb6e77..f0469554f 100644 --- a/src/Provider/BingMaps/BingMaps.php +++ b/src/Provider/BingMaps/BingMaps.php @@ -82,7 +82,7 @@ public function getName(): string return 'bing_maps'; } - private function executeQuery(string $url, ?string $locale = null, int $limit): Collection + private function executeQuery(string $url, ?string $locale = null, int $limit = 1): Collection { if (null !== $locale) { $url = sprintf('%s&culture=%s', $url, str_replace('_', '-', $locale)); diff --git a/src/Provider/GeoIP2/Tests/GeoIP2AdapterTest.php b/src/Provider/GeoIP2/Tests/GeoIP2AdapterTest.php index 6ec154847..1a3be5cac 100644 --- a/src/Provider/GeoIP2/Tests/GeoIP2AdapterTest.php +++ b/src/Provider/GeoIP2/Tests/GeoIP2AdapterTest.php @@ -150,14 +150,14 @@ protected function getGeoIP2ModelMock($geoIP2Model) 'city' => [ 'geoname_id' => 2911298, 'names' => [ - 'de' => 'Hamburg', - 'en' => 'Hamburg', - 'es' => 'Hamburgo', - 'fr' => 'Hambourg', - 'ja' => 'ハンブルク', - 'pt-BR' => 'Hamburgo', - 'ru' => 'Гамбург', - 'zh-CN' => '汉堡市', + 'de' => 'Hamburg', + 'en' => 'Hamburg', + 'es' => 'Hamburgo', + 'fr' => 'Hambourg', + 'ja' => 'ハンブルク', + 'pt-BR' => 'Hamburgo', + 'ru' => 'Гамбург', + 'zh-CN' => '汉堡市', ], ], ] diff --git a/src/Provider/GoogleMaps/GoogleMaps.php b/src/Provider/GoogleMaps/GoogleMaps.php index 0aa75edd8..fd58fe8bb 100644 --- a/src/Provider/GoogleMaps/GoogleMaps.php +++ b/src/Provider/GoogleMaps/GoogleMaps.php @@ -197,7 +197,7 @@ private function buildQuery(string $url, ?string $locale = null, ?string $region * @throws InvalidServerResponse * @throws InvalidCredentials */ - private function fetchUrl(string $url, ?string $locale = null, int $limit, ?string $region = null): AddressCollection + private function fetchUrl(string $url, ?string $locale = null, int $limit = 1, ?string $region = null): AddressCollection { $url = $this->buildQuery($url, $locale, $region); $content = $this->getUrlContents($url);