Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Function lang() / Type of return value #2192

Closed
klikklak opened this issue Sep 5, 2019 · 1 comment
Closed

Function lang() / Type of return value #2192

klikklak opened this issue Sep 5, 2019 · 1 comment

Comments

@klikklak
Copy link

klikklak commented Sep 5, 2019

The type of the return value of the function lang() in Common.php / line 433 ff. is set to "string". The documentation (chapter Localization / Nested Arrays) shows that lang() also can return an array. But if you try this, you will get a TypeError ("Return value of lang() must be of the type string, array returned").

@jim-parry
Copy link
Contributor

Duplicate of #2075

@jim-parry jim-parry marked this as a duplicate of #2075 Sep 8, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants