Skip to content

Commit

Permalink
Replace HTTPlug factories by PSR-17 (#1184)
Browse files Browse the repository at this point in the history
* Replace HTTPlug factories by PSR-17

* minor fix

---------

Co-authored-by: Nyholm <[email protected]>
  • Loading branch information
nicolas-grekas and Nyholm authored Dec 15, 2023
1 parent 32a803f commit 8e5d934
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion MapQuest.php
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ private function executePostQuery(string $endpoint, array $params): AddressColle
$url .= '?key='.$appKey;

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

$response = $this->getHttpClient()->sendRequest($request);
$content = $this->parseHttpResponse($response, $url);
Expand Down
7 changes: 3 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,14 @@
],
"require": {
"php": "^8.0",
"geocoder-php/common-http": "^4.0",
"geocoder-php/common-http": "^4.6",
"willdurand/geocoder": "^4.0"
},
"provide": {
"geocoder-php/provider-implementation": "1.0"
},
"require-dev": {
"geocoder-php/provider-integration-tests": "^1.1",
"php-http/curl-client": "^2.2",
"geocoder-php/provider-integration-tests": "^1.6.3",
"php-http/message": "^1.0",
"phpunit/phpunit": "^9.5"
},
Expand All @@ -44,4 +43,4 @@
"test": "vendor/bin/phpunit",
"test-ci": "vendor/bin/phpunit --coverage-text --coverage-clover=build/coverage.xml"
}
}
}

0 comments on commit 8e5d934

Please sign in to comment.