Skip to content

Commit

Permalink
Fix PHP 8.1 deprecation error
Browse files Browse the repository at this point in the history
  • Loading branch information
Rixafy authored and f3l1x committed May 13, 2022
1 parent 26a63ef commit 987fb20
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Logger/ProfilerLogger.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ public function startQuery($sql, ?array $params = null, ?array $types = null): v
$quotedParams = [];
foreach ($params as $typeIndex => $value) {
$type = $types[$typeIndex] ?? null;
$quotedParams[] = $this->connection->quote($value, $type);
$quotedParams[] = $value === null ? $value : $this->connection->quote($value, $type);
}

return $quotedParams;
Expand Down

0 comments on commit 987fb20

Please sign in to comment.