Skip to content

Commit

Permalink
fix: make argument for redirect nullable
Browse files Browse the repository at this point in the history
  • Loading branch information
pReya authored Jan 25, 2021
1 parent 551e2f4 commit 854c5a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Http/Response.php
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ public static function json($body = '', ?int $code = null, ?bool $pretty = null,
* @param int $code
* @return self
*/
public static function redirect(string $location = '/', int $code = 302)
public static function redirect(string $location = '/', ?int $code = 302)
{
return new static([
'code' => $code,
Expand Down

0 comments on commit 854c5a6

Please sign in to comment.