From 84b42a7e7c0f015092334392996302c818d04c70 Mon Sep 17 00:00:00 2001 From: ping-yee <611077101@mail.nknu.edu.tw> Date: Sun, 16 Apr 2023 23:20:22 +0800 Subject: [PATCH 1/2] docs: replace type `mixed` at I18n class. --- system/I18n/TimeDifference.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/system/I18n/TimeDifference.php b/system/I18n/TimeDifference.php index 2fcd09bd38e0..d2da7c6d4a18 100644 --- a/system/I18n/TimeDifference.php +++ b/system/I18n/TimeDifference.php @@ -271,7 +271,7 @@ public function humanize(?string $locale = null): string * * @param string $name * - * @return mixed + * @return bool|float|int|null */ public function __get($name) { From 44740d50d08880e0e7e11e0be3ff7653d13e53ef Mon Sep 17 00:00:00 2001 From: ping-yee <611077101@mail.nknu.edu.tw> Date: Wed, 19 Apr 2023 17:13:08 +0800 Subject: [PATCH 2/2] docs: remove type `bool` of return type. --- system/I18n/TimeDifference.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/system/I18n/TimeDifference.php b/system/I18n/TimeDifference.php index d2da7c6d4a18..4b0e1aa595c1 100644 --- a/system/I18n/TimeDifference.php +++ b/system/I18n/TimeDifference.php @@ -271,7 +271,7 @@ public function humanize(?string $locale = null): string * * @param string $name * - * @return bool|float|int|null + * @return float|int|null */ public function __get($name) {