Skip to content

Commit

Permalink
Update AdapterFunctions.php with explicit nullable type
Browse files Browse the repository at this point in the history
  • Loading branch information
joanhey authored Oct 19, 2024
1 parent 2563045 commit 36578ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/functions/AdapterFunctions.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 36578ba

Please sign in to comment.