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 false-positive parameter validation error when query string is not resolvable #630

Merged
merged 3 commits into from
Sep 29, 2023

Conversation

staabm
Copy link
Owner

@staabm staabm commented Sep 29, 2023

No description provided.

@staabm staabm changed the title Fix false-positive when query string is not resolvable Fix false-positive parameter validation error when query string is not resolvable Sep 29, 2023
@@ -36,8 +40,8 @@ public function checkQuery(Expr $queryExpr, Scope $scope, array $parameters): it

$minPlaceholderCount = PHP_INT_MAX;
$maxPlaceholderCount = 0;
foreach ($queryStrings as $queryString) {
$placeholderCount = $queryReflection->countPlaceholders($queryString);
foreach ($queryStrings as $unnamedQueryString) {
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

variable rename required because of phpstan/phpstan#9940

@staabm staabm enabled auto-merge (squash) September 29, 2023 11:34
@staabm staabm merged commit ccabc0c into main Sep 29, 2023
@staabm staabm deleted the fail branch September 29, 2023 11:35
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.

1 participant