From a4774008f44db68db1efd81e9cb5437583acb5b1 Mon Sep 17 00:00:00 2001 From: ping-yee <611077101@mail.nknu.edu.tw> Date: Tue, 25 Apr 2023 17:42:33 +0800 Subject: [PATCH 1/3] docs: replace mixed in filter class. --- system/Filters/Filters.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/system/Filters/Filters.php b/system/Filters/Filters.php index 30e36a32c65f..5e10a87fd68d 100644 --- a/system/Filters/Filters.php +++ b/system/Filters/Filters.php @@ -375,7 +375,7 @@ public function enableFilters(array $names, string $when = 'before') /** * Returns the arguments for a specified key, or all. * - * @return mixed + * @return array|bool|float|int|object|string|null */ public function getArguments(?string $key = null) { From d9313c40b94c46fdb8dfc8806f3dba5e0da924ac Mon Sep 17 00:00:00 2001 From: ping-yee <611077101@mail.nknu.edu.tw> Date: Thu, 27 Apr 2023 15:20:52 +0800 Subject: [PATCH 2/3] docs: replace type. --- system/Filters/FilterInterface.php | 4 ++-- system/Filters/Filters.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/system/Filters/FilterInterface.php b/system/Filters/FilterInterface.php index 8055d11e7949..1a3363c90866 100644 --- a/system/Filters/FilterInterface.php +++ b/system/Filters/FilterInterface.php @@ -31,7 +31,7 @@ interface FilterInterface * * @param array|null $arguments * - * @return mixed + * @return RequestInterface|ResponseInterface|string|void */ public function before(RequestInterface $request, $arguments = null); @@ -43,7 +43,7 @@ public function before(RequestInterface $request, $arguments = null); * * @param array|null $arguments * - * @return mixed + * @return ResponseInterface|void */ public function after(RequestInterface $request, ResponseInterface $response, $arguments = null); } diff --git a/system/Filters/Filters.php b/system/Filters/Filters.php index 5e10a87fd68d..c022d7d7fda1 100644 --- a/system/Filters/Filters.php +++ b/system/Filters/Filters.php @@ -375,7 +375,7 @@ public function enableFilters(array $names, string $when = 'before') /** * Returns the arguments for a specified key, or all. * - * @return array|bool|float|int|object|string|null + * @return array|string */ public function getArguments(?string $key = null) { From 831a401be44deb0feea783f84966fb4c73f3e803 Mon Sep 17 00:00:00 2001 From: ping-yee <611077101@mail.nknu.edu.tw> Date: Mon, 1 May 2023 16:35:25 +0800 Subject: [PATCH 3/3] docs: change back mixed return type in filterInterface class. --- system/Filters/FilterInterface.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/system/Filters/FilterInterface.php b/system/Filters/FilterInterface.php index 1a3363c90866..8055d11e7949 100644 --- a/system/Filters/FilterInterface.php +++ b/system/Filters/FilterInterface.php @@ -31,7 +31,7 @@ interface FilterInterface * * @param array|null $arguments * - * @return RequestInterface|ResponseInterface|string|void + * @return mixed */ public function before(RequestInterface $request, $arguments = null); @@ -43,7 +43,7 @@ public function before(RequestInterface $request, $arguments = null); * * @param array|null $arguments * - * @return ResponseInterface|void + * @return mixed */ public function after(RequestInterface $request, ResponseInterface $response, $arguments = null); }