Skip to content

Commit c2d1af1

Browse files
jorgsowaflavioheleno
authored andcommitted
set explicit nullable parameters for PHP 8.4
1 parent f77e92b commit c2d1af1

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/Endpoint/ContainerAttachWebsocket.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@ public function getExtraHeaders(): array
2727
);
2828
}
2929

30-
protected function transformResponseBody(ResponseInterface $response, SerializerInterface $serializer, string $contentType = null)
30+
protected function transformResponseBody(ResponseInterface $response, SerializerInterface $serializer, ?string
31+
$contentType = null)
3132
{
3233
if (200 === $response->getStatusCode() && DockerRawStream::HEADER === $contentType) {
3334
return new AttachWebsocketStream($response->getBody());

src/Endpoint/ContainerLogs.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
class ContainerLogs extends BaseEndpoint
1313
{
14-
protected function transformResponseBody(ResponseInterface $response, SerializerInterface $serializer, string $contentType = null)
14+
protected function transformResponseBody(ResponseInterface $response, SerializerInterface $serializer, ?string $contentType = null)
1515
{
1616
if (200 === $response->getStatusCode() && DockerRawStream::HEADER === $contentType) {
1717
return new DockerRawStream($response->getBody());

0 commit comments

Comments
 (0)