Skip to content

Commit

Permalink
Merge pull request #8162 from kenjis/docs-fix-lang-return-type
Browse files Browse the repository at this point in the history
docs: fix return type for lang()
  • Loading branch information
kenjis authored Nov 7, 2023
2 parents 0708fd7 + 5c55c43 commit 56ed444
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion system/Common.php
Original file line number Diff line number Diff line change
Expand Up @@ -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>|string
*/
function lang(string $line, array $args = [], ?string $locale = null)
{
Expand Down
2 changes: 1 addition & 1 deletion system/Language/Language.php
Original file line number Diff line number Diff line change
Expand Up @@ -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>|string
*/
public function getLine(string $line, array $args = [])
{
Expand Down

0 comments on commit 56ed444

Please sign in to comment.