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 building sql queries, sometimes str_repeat is used to build IN sql-expressions.
str_repeat
$array = [1,2,3]; // our array $in = str_repeat('?,', count($array) - 1) . '?'; $sql = "SELECT * FROM table WHERE column IN ($in)";
Given constant arguments, str_repeat should return a ConstantString which would allow query analysis.
https://phpstan.org/r/33728aab-b9fb-4567-953e-0027dd26ee6b
I will work on it, just leaving it here so it is not forgotten
The text was updated successfully, but these errors were encountered:
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
Feature request
When building sql queries, sometimes
str_repeat
is used to build IN sql-expressions.Given constant arguments,
str_repeat
should return a ConstantString which would allow query analysis.https://phpstan.org/r/33728aab-b9fb-4567-953e-0027dd26ee6b
I will work on it, just leaving it here so it is not forgotten
The text was updated successfully, but these errors were encountered: