Skip to content

Commit 9a8c5b7

Browse files
authored
Merge pull request #19 from tiny-blocks/release/2.1.6
Release/2.1.6
2 parents a67b51d + a1d1a17 commit 9a8c5b7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/HttpResponse.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,17 +17,17 @@ public static function ok(mixed $data, ?HttpHeaders $headers = null): ResponseIn
1717
return Response::from(code: HttpCode::OK, data: $data, headers: $headers);
1818
}
1919

20-
public static function created(mixed $data, HttpHeaders $headers = null): ResponseInterface
20+
public static function created(mixed $data, ?HttpHeaders $headers = null): ResponseInterface
2121
{
2222
return Response::from(code: HttpCode::CREATED, data: $data, headers: $headers);
2323
}
2424

25-
public static function accepted(mixed $data, HttpHeaders $headers = null): ResponseInterface
25+
public static function accepted(mixed $data, ?HttpHeaders $headers = null): ResponseInterface
2626
{
2727
return Response::from(code: HttpCode::ACCEPTED, data: $data, headers: $headers);
2828
}
2929

30-
public static function noContent(HttpHeaders $headers = null): ResponseInterface
30+
public static function noContent(?HttpHeaders $headers = null): ResponseInterface
3131
{
3232
return Response::from(code: HttpCode::NO_CONTENT, data: null, headers: $headers);
3333
}

0 commit comments

Comments
 (0)