Skip to content

Commit

Permalink
Update QuerySimulation.php
Browse files Browse the repository at this point in the history
  • Loading branch information
staabm committed Oct 3, 2024
1 parent 7995150 commit 11a6729
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/QueryReflection/QuerySimulation.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ public static function simulateParamValueType(Type $paramType, bool $preparedPar
return (string) $paramType->getValue();
}

if ($paramType instanceof ArrayType) {
return self::simulateParamValueType($paramType->getItemType(), $preparedParam);
if ($paramType->isArray()->yes()) {
return self::simulateParamValueType($paramType->getIterableValueType(), $preparedParam);
}

if (
Expand Down

0 comments on commit 11a6729

Please sign in to comment.