Skip to content

Commit 56ed444

Browse files
authored
Merge pull request #8162 from kenjis/docs-fix-lang-return-type
docs: fix return type for lang()
2 parents 0708fd7 + 5c55c43 commit 56ed444

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

system/Common.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -755,7 +755,7 @@ function is_windows(?bool $mock = null): bool
755755
* A convenience method to translate a string or array of them and format
756756
* the result with the intl extension's MessageFormatter.
757757
*
758-
* @return string
758+
* @return list<string>|string
759759
*/
760760
function lang(string $line, array $args = [], ?string $locale = null)
761761
{

system/Language/Language.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ public function getLocale(): string
8888
* Parses the language string for a file, loads the file, if necessary,
8989
* getting the line.
9090
*
91-
* @return string|string[]
91+
* @return list<string>|string
9292
*/
9393
public function getLine(string $line, array $args = [])
9494
{

0 commit comments

Comments
 (0)