diff --git a/system/Common.php b/system/Common.php index 5f202f1c4ae8..85f2a765bb70 100644 --- a/system/Common.php +++ b/system/Common.php @@ -433,16 +433,16 @@ function single_service(string $name, ...$params) if (! function_exists('lang')) { /** - * A convenience method to translate a string and format it - * with the intl extension's MessageFormatter object. + * A convenience method to translate a string or array of them and format + * the result with the intl extension's MessageFormatter. * - * @param string $line - * @param array $args - * @param string $locale + * @param string|[] $line + * @param array $args + * @param string $locale * * @return string */ - function lang(string $line, array $args = [], string $locale = null): string + function lang(string $line, array $args = [], string $locale = null) { return Services::language($locale) ->getLine($line, $args); @@ -1085,7 +1085,6 @@ function dd(...$vars) } } - //-------------------------------------------------------------------- if (! function_exists('trace'))