Skip to content

Commit

Permalink
Resolve invalid deprecation that was crashing Dibi analysis in debug …
Browse files Browse the repository at this point in the history
…mode.
  • Loading branch information
patrickkusebauch authored and staabm committed Jan 22, 2024
1 parent c5bea3f commit e7364e3
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions src/Rules/SyntaxErrorInDibiPreparedStatementMethodRule.php
Original file line number Diff line number Diff line change
Expand Up @@ -112,13 +112,7 @@ private function checkErrors(CallLike $callLike, Scope $scope, MethodReflection
$parameterType = $scope->getType($parameterExpr);

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

if (null === $resolvedString) {
$queryParameters[] = $parameterType;
} else {
$queryParameters[] = $resolvedString;
}
$queryParameters[] = $queryReflection->resolveQueryStrings($parameterExpr, $scope);
} elseif ($parameterType instanceof ConstantArrayType) {
$constantArray = [];

Expand Down

0 comments on commit e7364e3

Please sign in to comment.