We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 48d1b80 commit 3ddc545Copy full SHA for 3ddc545
system/HTTP/RedirectResponse.php
@@ -50,7 +50,7 @@ public function to(string $uri, ?int $code = null, string $method = 'auto')
50
*
51
* @throws HTTPException
52
*/
53
- public function route(string $route, array $params = [], int $code = 302, string $method = 'auto')
+ public function route(string $route, array $params = [], ?int $code = null, string $method = 'auto')
54
{
55
$namedRoute = $route;
56
0 commit comments