Skip to content

Commit ce89424

Browse files
committed
docs: update PHPDoc
1 parent 3163d3b commit ce89424

2 files changed

Lines changed: 6 additions & 5 deletions

File tree

system/Common.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -941,14 +941,14 @@ function response(): ResponseInterface
941941

942942
if (! function_exists('route_to')) {
943943
/**
944-
* Given a controller/method string and any params,
944+
* Given a route name or controller/method string and any params,
945945
* will attempt to build the relative URL to the
946946
* matching route.
947947
*
948948
* NOTE: This requires the controller/method to
949949
* have a route defined in the routes Config file.
950950
*
951-
* @param string $method Named route or Controller::method
951+
* @param string $method Route name or Controller::method
952952
* @param int|string ...$params One or more parameters to be passed to the route.
953953
* The last parameter allows you to set the locale.
954954
*

system/Helpers/url_helper.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -542,14 +542,15 @@ function mb_url_title(string $str, string $separator = '-', bool $lowercase = fa
542542

543543
if (! function_exists('url_to')) {
544544
/**
545-
* Get the full, absolute URL to a controller method
545+
* Get the full, absolute URL to a route named or controller method
546546
* (with additional arguments)
547547
*
548548
* NOTE: This requires the controller/method to
549549
* have a route defined in the routes Config file.
550550
*
551-
* @param string $controller Named route or Controller::method
552-
* @param int|string ...$args One or more parameters to be passed to the route
551+
* @param string $controller Route name or Controller::method
552+
* @param int|string ...$args One or more parameters to be passed to the route.
553+
* The last parameter allows you to set the locale.
553554
*
554555
* @throws RouterException
555556
*/

0 commit comments

Comments
 (0)