Skip to content

Commit 3ddc545

Browse files
committed
fix: default value for $code in RedirectResponse::route()
For consistency. Other methods use null by default.
1 parent 48d1b80 commit 3ddc545

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

system/HTTP/RedirectResponse.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ public function to(string $uri, ?int $code = null, string $method = 'auto')
5050
*
5151
* @throws HTTPException
5252
*/
53-
public function route(string $route, array $params = [], int $code = 302, string $method = 'auto')
53+
public function route(string $route, array $params = [], ?int $code = null, string $method = 'auto')
5454
{
5555
$namedRoute = $route;
5656

0 commit comments

Comments
 (0)