Skip to content

Commit

Permalink
Update src/MediaQueryLogger.php
Browse files Browse the repository at this point in the history
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
  • Loading branch information
koriym and coderabbitai[bot] authored May 10, 2024
1 parent e7e8643 commit 1a06081
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/MediaQueryLogger.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public function log(string $queryId, array $values): void
continue;
}

$value = base64_encode($value); // or '(binary) ' . base64_encode($value); // or '(binary) ' .
$value = base64_encode($value); // Encode non-UTF-8 strings in base64 to handle binary data.
}

$this->logs[] = sprintf('query: %s(%s)', $queryId, json_encode($values, JSON_THROW_ON_ERROR));
Expand Down

0 comments on commit 1a06081

Please sign in to comment.