Skip to content

Commit 6b12ab8

Browse files
committed
docs: fix PHPDocs
1 parent c770ccb commit 6b12ab8

4 files changed

Lines changed: 8 additions & 4 deletions

File tree

system/Common.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -905,7 +905,8 @@ function remove_invisible_characters(string $str, bool $urlEncoded = true): stri
905905
* NOTE: This requires the controller/method to
906906
* have a route defined in the routes Config file.
907907
*
908-
* @param mixed ...$params
908+
* @param string $method Named route or Controller::method
909+
* @param int|string ...$params One or more parameters to be passed to the route
909910
*
910911
* @return false|string
911912
*/

system/Helpers/url_helper.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -525,7 +525,8 @@ function mb_url_title(string $str, string $separator = '-', bool $lowercase = fa
525525
* NOTE: This requires the controller/method to
526526
* have a route defined in the routes Config file.
527527
*
528-
* @param mixed ...$args
528+
* @param string $controller Named route or Controller::method
529+
* @param int|string ...$args One or more parameters to be passed to the route
529530
*
530531
* @throws RouterException
531532
*/

system/Router/RouteCollection.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -989,7 +989,8 @@ public function environment(string $env, Closure $callback): RouteCollectionInte
989989
* // Equals 'path/$param1/$param2'
990990
* reverseRoute('Controller::method', $param1, $param2);
991991
*
992-
* @param mixed ...$params
992+
* @param string $search Named route or Controller::method
993+
* @param int|string ...$params One or more parameters to be passed to the route
993994
*
994995
* @return false|string
995996
*/

system/Router/RouteCollectionInterface.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,8 @@ public function getHTTPVerb();
169169
* // Equals 'path/$param1/$param2'
170170
* reverseRoute('Controller::method', $param1, $param2);
171171
*
172-
* @param array ...$params
172+
* @param string $search Named route or Controller::method
173+
* @param int|string ...$params
173174
*
174175
* @return false|string
175176
*/

0 commit comments

Comments
 (0)