diff --git a/GoogleMaps.php b/GoogleMaps.php index 760cc97..2027745 100644 --- a/GoogleMaps.php +++ b/GoogleMaps.php @@ -158,8 +158,6 @@ public function getName(): string } /** - * @param string $locale - * * @return string query with extra params */ private function buildQuery(string $url, string $locale = null, string $region = null): string @@ -196,9 +194,6 @@ private function buildQuery(string $url, string $locale = null, string $region = } /** - * @param string $locale - * @param string $region - * * @throws InvalidServerResponse * @throws InvalidCredentials */ diff --git a/Model/GoogleAddress.php b/Model/GoogleAddress.php index e8aa9ff..fbd96c9 100644 --- a/Model/GoogleAddress.php +++ b/Model/GoogleAddress.php @@ -381,8 +381,6 @@ public function getPremise() } /** - * @param string $premise - * * @return GoogleAddress */ public function withPremise(string $premise = null) diff --git a/Readme.md b/Readme.md index 8702e98..2eb77df 100644 --- a/Readme.md +++ b/Readme.md @@ -13,7 +13,7 @@ This is the Google Maps provider from the PHP Geocoder. This is a **READ ONLY** ## Usage ```php -$httpClient = new \GuzzleHttp\Client(); +$httpClient = new \Http\Discovery\Psr18Client(); // You must provide an API key $provider = new \Geocoder\Provider\GoogleMaps\GoogleMaps($httpClient, null, 'your-api-key'); @@ -31,7 +31,7 @@ can use the static `business` method on the provider to create a client: ```php -$httpClient = new \GuzzleHttp\Client(); +$httpClient = new \Http\Discovery\Psr18Client(); // Client ID is required. Private key is optional. $provider = \Geocoder\Provider\GoogleMaps\GoogleMaps::business($httpClient, 'your-client-id', 'your-private-key'); diff --git a/composer.json b/composer.json index 3d54af8..9ef180b 100644 --- a/composer.json +++ b/composer.json @@ -20,8 +20,7 @@ "geocoder-php/provider-implementation": "1.0" }, "require-dev": { - "geocoder-php/provider-integration-tests": "^1.0", - "php-http/curl-client": "^2.2", + "geocoder-php/provider-integration-tests": "^1.6.3", "php-http/message": "^1.0", "phpunit/phpunit": "^9.5" }, @@ -44,4 +43,4 @@ "test": "vendor/bin/phpunit", "test-ci": "vendor/bin/phpunit --coverage-text --coverage-clover=build/coverage.xml" } -} \ No newline at end of file +}