Skip to content

Commit

Permalink
Update guzzlehttp/guzzle to 7.8
Browse files Browse the repository at this point in the history
  • Loading branch information
JorisCourtois-fulll committed May 16, 2024
1 parent 86ea801 commit d0dae40
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
],
"require": {
"php": "^7.2|^8.0",
"guzzlehttp/guzzle": "~7.0",
"guzzlehttp/guzzle": "^7.8",
"guzzlehttp/uri-template": "0.2.0"
},
"require-dev": {
Expand Down
6 changes: 3 additions & 3 deletions src/Http/HapiClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -200,9 +200,9 @@ public function refresh($resource)
* Instantiates the HttpRequest depending on the
* configuration from the given Request.
* @param $request RequestInterface The Request configuration.
* @return The HTTP request.
* @return \GuzzleHttp\Psr7\Request HTTP request.
*/
private function createHttpRequest(RequestInterface $request)
private function createHttpRequest(RequestInterface $request): \GuzzleHttp\Psr7\Request
{
// Handle authentication first
if ($this->authenticationMethod) {
Expand Down Expand Up @@ -241,7 +241,7 @@ private function createHttpRequest(RequestInterface $request)
$request->getMethod(),
$url,
array_merge($headers, $headersToAdd),
$body ? \GuzzleHttp\Psr7\stream_for($body) : null
$body ? \GuzzleHttp\Psr7\Utils::streamFor($body) : null
);

return $httpRequest;
Expand Down

0 comments on commit d0dae40

Please # to comment.