We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
When using _s() function, it fails when you do not provide third parametre, $args.
Error message:
vsprintf(): Argument #2 ($values) must be of type array, null given
Example code:
$diff = $created->diff($now)->days; return $diff . ' ' . _s('{0} 0 day|]1,4[ days|]4,Inf[ days', $diff)
Laravel version: 8.39.0 PHP version: 8.0 LaravelGetText version: dev-master (also tried it on 8.0.2)
However, when I add the third parametre, even only an empty array, it works.
The text was updated successfully, but these errors were encountered:
Not a fix but I suggest providing an empty array until this is fixed.
Sorry, something went wrong.
The offending line is 112 in helpers where it defaults to null instead of empty array.
I am providing an empty array, I just wanted to report this.
Fix issue zerospam#52
3c5c60c
No branches or pull requests
When using _s() function, it fails when you do not provide third parametre, $args.
Error message:
Example code:
Laravel version: 8.39.0
PHP version: 8.0
LaravelGetText version: dev-master (also tried it on 8.0.2)
However, when I add the third parametre, even only an empty array, it works.
The text was updated successfully, but these errors were encountered: