Skip to content

Commit 3627d34

Browse files
committed
Fix PHP deprecation
1 parent 38406de commit 3627d34

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Http.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ public function __construct(
1515
) {
1616
}
1717

18-
public function request(string $method, string $uri, string $body = null): string
18+
public function request(string $method, string $uri, ?string $body = null): string
1919
{
2020
$response = $this->executeRequest($method, $uri, $body);
2121

@@ -30,7 +30,7 @@ public function request(string $method, string $uri, string $body = null): strin
3030
/**
3131
* @return Generator<string>
3232
*/
33-
public function stream(string $method, string $uri, string $body = null): Generator
33+
public function stream(string $method, string $uri, ?string $body = null): Generator
3434
{
3535
$response = $this->executeRequest($method, $uri, $body);
3636

@@ -49,7 +49,7 @@ public function stream(string $method, string $uri, string $body = null): Genera
4949
}
5050
}
5151

52-
private function executeRequest(string $method, string $uri, string $body = null): ResponseInterface
52+
private function executeRequest(string $method, string $uri, ?string $body = null): ResponseInterface
5353
{
5454
$this->logger->debug('HTTP Request: {method} {uri}', [
5555
'method' => $method,

0 commit comments

Comments
 (0)