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 = []) {