Skip to content

Commit

Permalink
Discard changes to src/Rules/SyntaxErrorInDibiPreparedStatementMethod…
Browse files Browse the repository at this point in the history
…Rule.php
  • Loading branch information
staabm authored Jan 22, 2024
1 parent 9c2290f commit 8a945d8
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/Rules/SyntaxErrorInDibiPreparedStatementMethodRule.php
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,13 @@ private function checkErrors(CallLike $callLike, Scope $scope, MethodReflection
$parameterType = $scope->getType($parameterExpr);

if ($parameterType instanceof StringType) {
$queryParameters[] = $queryReflection->resolveQueryStrings($parameterExpr, $scope);
$resolvedString = $queryReflection->resolveQueryString($parameterExpr, $scope);

if (null === $resolvedString) {
$queryParameters[] = $parameterType;
} else {
$queryParameters[] = $resolvedString;
}
} elseif ($parameterType instanceof ConstantArrayType) {
$constantArray = [];

Expand Down

0 comments on commit 8a945d8

Please sign in to comment.