From e3324e7f5b3de5d3a6ca007ae311577b95e0b64d Mon Sep 17 00:00:00 2001 From: kenjis Date: Tue, 27 Aug 2024 09:13:21 +0900 Subject: [PATCH 1/2] docs: fix doc comment --- system/Router/Router.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/system/Router/Router.php b/system/Router/Router.php index dc778cd03ffe..1d49a0e851f0 100644 --- a/system/Router/Router.php +++ b/system/Router/Router.php @@ -181,7 +181,7 @@ public function __construct(RouteCollectionInterface $routes, ?Request $request } /** - * Finds the controller method corresponding to the URI. + * Finds the controller corresponding to the URI. * * @param string|null $uri URI path relative to baseURL * From 679ba5984c4e5619ae6af8acde81c6248ab8881e Mon Sep 17 00:00:00 2001 From: kenjis Date: Tue, 27 Aug 2024 10:48:26 +0900 Subject: [PATCH 2/2] docs: make comments more precise --- system/Router/Router.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/system/Router/Router.php b/system/Router/Router.php index 1d49a0e851f0..d60313f6c032 100644 --- a/system/Router/Router.php +++ b/system/Router/Router.php @@ -241,7 +241,7 @@ public function getFilters(): array } /** - * Returns the name of the matched controller. + * Returns the name of the matched controller or closure. * * @return (Closure(mixed...): (ResponseInterface|string|void))|string Controller classname or Closure */ @@ -254,7 +254,7 @@ public function controllerName() /** * Returns the name of the method to run in the - * chosen container. + * chosen controller. */ public function methodName(): string {