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

Fix lang() signature #2261

Merged
merged 1 commit into from
Sep 23, 2019
Merged

Fix lang() signature #2261

merged 1 commit into from
Sep 23, 2019

Conversation

jim-parry
Copy link
Contributor

lang() indeed returns a string or array of them.
Fixes #2075

@jim-parry jim-parry merged commit 49d3462 into codeigniter4:develop Sep 23, 2019
@klikklak
Copy link

Thank you for fixing the signature. There is still a little «bug» in the the comment:
* @param string|[] $line
* @param array $args
* @param string $locale
*
* @return string

=> this should be like that:
* @param string $line
* @param array $args
* @param string $locale
*
* @return string|[]

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

Successfully merging this pull request may close these issues.

Return value of lang() must be of the type string, array returned
2 participants