From 36578ba4841fe5ae0b573a6de218ca6d8c63a820 Mon Sep 17 00:00:00 2001 From: Joan Miquel Date: Sat, 19 Oct 2024 23:51:53 +0200 Subject: [PATCH] Update AdapterFunctions.php with explicit nullable type --- src/functions/AdapterFunctions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/functions/AdapterFunctions.php b/src/functions/AdapterFunctions.php index a682e01..0a0328d 100644 --- a/src/functions/AdapterFunctions.php +++ b/src/functions/AdapterFunctions.php @@ -45,7 +45,7 @@ function header_remove(?string $name = null): void * * @link https://www.php.net/manual/en/function.http-response-code.php */ -function http_response_code(int $code = null): int +function http_response_code(?int $code = null): int { // int|bool return Http::responseCode($code); // Fix to return actual status when void }