Skip to content

Commit 5a599dd

Browse files
committed
docs: update PHPDocs
1 parent d95d86e commit 5a599dd

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

system/Common.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -863,7 +863,7 @@ function old(string $key, $default = null, $escape = 'html')
863863
*
864864
* If more control is needed, you must use $response->redirect explicitly.
865865
*
866-
* @param string $route
866+
* @param string|null $route Route name or Controller::method
867867
*/
868868
function redirect(?string $route = null): RedirectResponse
869869
{

system/HTTP/RedirectResponse.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ class RedirectResponse extends Response
2424
* Sets the URI to redirect to and, optionally, the HTTP status code to use.
2525
* If no code is provided it will be automatically determined.
2626
*
27-
* @param string $uri The URI to redirect to
27+
* @param string $uri The URI path (relative to baseURL) to redirect to
2828
* @param int|null $code HTTP status code
2929
*
3030
* @return $this
@@ -44,7 +44,7 @@ public function to(string $uri, ?int $code = null, string $method = 'auto')
4444
* Sets the URI to redirect to but as a reverse-routed or named route
4545
* instead of a raw URI.
4646
*
47-
* @param string $route Named route or Controller::method
47+
* @param string $route Route name or Controller::method
4848
*
4949
* @return $this
5050
*

system/Router/RouteCollection.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1043,7 +1043,7 @@ public function environment(string $env, Closure $callback): RouteCollectionInte
10431043
* // Equals 'path/$param1/$param2'
10441044
* reverseRoute('Controller::method', $param1, $param2);
10451045
*
1046-
* @param string $search Named route or Controller::method
1046+
* @param string $search Route name or Controller::method
10471047
* @param int|string ...$params One or more parameters to be passed to the route.
10481048
* The last parameter allows you to set the locale.
10491049
*

0 commit comments

Comments
 (0)