Skip to content

Commit 8e5d934

Browse files
Replace HTTPlug factories by PSR-17 (#1184)
* Replace HTTPlug factories by PSR-17 * minor fix --------- Co-authored-by: Nyholm <[email protected]>
1 parent 32a803f commit 8e5d934

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

MapQuest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@ private function executePostQuery(string $endpoint, array $params): AddressColle
253253
$url .= '?key='.$appKey;
254254

255255
$requestBody = json_encode($params);
256-
$request = $this->getMessageFactory()->createRequest('POST', $url, [], $requestBody);
256+
$request = $this->createRequest('POST', $url, [], $requestBody);
257257

258258
$response = $this->getHttpClient()->sendRequest($request);
259259
$content = $this->parseHttpResponse($response, $url);

composer.json

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,14 @@
1313
],
1414
"require": {
1515
"php": "^8.0",
16-
"geocoder-php/common-http": "^4.0",
16+
"geocoder-php/common-http": "^4.6",
1717
"willdurand/geocoder": "^4.0"
1818
},
1919
"provide": {
2020
"geocoder-php/provider-implementation": "1.0"
2121
},
2222
"require-dev": {
23-
"geocoder-php/provider-integration-tests": "^1.1",
24-
"php-http/curl-client": "^2.2",
23+
"geocoder-php/provider-integration-tests": "^1.6.3",
2524
"php-http/message": "^1.0",
2625
"phpunit/phpunit": "^9.5"
2726
},
@@ -44,4 +43,4 @@
4443
"test": "vendor/bin/phpunit",
4544
"test-ci": "vendor/bin/phpunit --coverage-text --coverage-clover=build/coverage.xml"
4645
}
47-
}
46+
}

0 commit comments

Comments
 (0)