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
Concerns about the changes in #8922:
The new return type is not always true. Here is a counter example: var_dump(sprintf('%s', '', 'x')); // string(0) ""
var_dump(sprintf('%s', '', 'x')); // string(0) ""
And this also does not figure out this is a non-empty-string: var_dump(sprintf('%s%s', '', 'x')); // string(0) "x"
var_dump(sprintf('%s%s', '', 'x')); // string(0) "x"
The text was updated successfully, but these errors were encountered:
Nevermind, I think I am wrong because it defaults back to just string when there are more than 2 args
string
Sorry, something went wrong.
No branches or pull requests
Concerns about the changes in #8922:
The new return type is not always true. Here is a counter example:
var_dump(sprintf('%s', '', 'x')); // string(0) ""
And this also does not figure out this is a non-empty-string:
var_dump(sprintf('%s%s', '', 'x')); // string(0) "x"
The text was updated successfully, but these errors were encountered: