diff --git a/GoogleMaps.php b/GoogleMaps.php index 0aa75ed..fd58fe8 100644 --- a/GoogleMaps.php +++ b/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);