From 5c55c435e4db9e38afe6a5292e3366e9cf5d5f3b Mon Sep 17 00:00:00 2001 From: kenjis Date: Tue, 7 Nov 2023 11:14:47 +0900 Subject: [PATCH] docs: fix return type for lang() --- system/Common.php | 2 +- system/Language/Language.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/system/Common.php b/system/Common.php index 9ad7fe5b842b..2d876564846e 100644 --- a/system/Common.php +++ b/system/Common.php @@ -755,7 +755,7 @@ function is_windows(?bool $mock = null): bool * A convenience method to translate a string or array of them and format * the result with the intl extension's MessageFormatter. * - * @return string + * @return list|string */ function lang(string $line, array $args = [], ?string $locale = null) { diff --git a/system/Language/Language.php b/system/Language/Language.php index 32eee39f2a13..8633f8a2dd9c 100644 --- a/system/Language/Language.php +++ b/system/Language/Language.php @@ -88,7 +88,7 @@ public function getLocale(): string * Parses the language string for a file, loads the file, if necessary, * getting the line. * - * @return string|string[] + * @return list|string */ public function getLine(string $line, array $args = []) {