Skip to content

Commit

Permalink
Fix type error
Browse files Browse the repository at this point in the history
  • Loading branch information
norkunas committed Jun 25, 2019
1 parent 57d73fc commit 215dc5f
Showing 1 changed file with 3 additions and 0 deletions.
Expand Up @@ -138,6 +138,9 @@ private function sanitizeQuery($connectionName, $query)
if (!\is_array($query['params'])) {
$query['params'] = [$query['params']];
}
if (!\is_array($query['types'])) {
$query['types'] = [];
}
foreach ($query['params'] as $j => $param) {
if (isset($query['types'][$j])) {
// Transform the param according to the type
Expand Down

0 comments on commit 215dc5f

Please sign in to comment.