From 3ac79a8c7823ef64903fbfc6936cfc88285711f0 Mon Sep 17 00:00:00 2001 From: ping-yee <611077101@mail.nknu.edu.tw> Date: Fri, 14 Apr 2023 14:06:09 +0800 Subject: [PATCH 1/2] docs: replace mixed type of CLI class. --- system/CLI/BaseCommand.php | 4 ++-- system/CLI/CLI.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/system/CLI/BaseCommand.php b/system/CLI/BaseCommand.php index 163e81f1bb52..0618ceb237f7 100644 --- a/system/CLI/BaseCommand.php +++ b/system/CLI/BaseCommand.php @@ -105,7 +105,7 @@ abstract public function run(array $params); /** * Can be used by a command to run other commands. * - * @return mixed + * @return int|void * * @throws ReflectionException */ @@ -205,7 +205,7 @@ public function getPad(array $array, int $pad): int /** * Makes it simple to access our protected properties. * - * @return mixed + * @return array|Commands|LoggerInterface|string|null */ public function __get(string $key) { diff --git a/system/CLI/CLI.php b/system/CLI/CLI.php index 8b648a6b5606..c06604fbc4e6 100644 --- a/system/CLI/CLI.php +++ b/system/CLI/CLI.php @@ -915,7 +915,7 @@ public static function getURI(): string * * **IMPORTANT:** The index here is one-based instead of zero-based. * - * @return mixed + * @return array|string|null */ public static function getSegment(int $index) { From dad7ee922e7c9c3e4936398c79565ae4fb83e1c9 Mon Sep 17 00:00:00 2001 From: ping-yee <611077101@mail.nknu.edu.tw> Date: Wed, 19 Apr 2023 17:08:31 +0800 Subject: [PATCH 2/2] docs: remove type `array` of return parameter. --- system/CLI/CLI.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/system/CLI/CLI.php b/system/CLI/CLI.php index c06604fbc4e6..80d001a354ac 100644 --- a/system/CLI/CLI.php +++ b/system/CLI/CLI.php @@ -915,7 +915,7 @@ public static function getURI(): string * * **IMPORTANT:** The index here is one-based instead of zero-based. * - * @return array|string|null + * @return string|null */ public static function getSegment(int $index) {