Skip to content

Commit 0010eeb

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

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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)