diff --git a/src/HttpResponse.php b/src/HttpResponse.php index 7c079f2..92fd54d 100644 --- a/src/HttpResponse.php +++ b/src/HttpResponse.php @@ -17,17 +17,17 @@ public static function ok(mixed $data, ?HttpHeaders $headers = null): ResponseIn return Response::from(code: HttpCode::OK, data: $data, headers: $headers); } - public static function created(mixed $data, HttpHeaders $headers = null): ResponseInterface + public static function created(mixed $data, ?HttpHeaders $headers = null): ResponseInterface { return Response::from(code: HttpCode::CREATED, data: $data, headers: $headers); } - public static function accepted(mixed $data, HttpHeaders $headers = null): ResponseInterface + public static function accepted(mixed $data, ?HttpHeaders $headers = null): ResponseInterface { return Response::from(code: HttpCode::ACCEPTED, data: $data, headers: $headers); } - public static function noContent(HttpHeaders $headers = null): ResponseInterface + public static function noContent(?HttpHeaders $headers = null): ResponseInterface { return Response::from(code: HttpCode::NO_CONTENT, data: null, headers: $headers); }