From 1a06081ca7d68d0e3c9718401f41f837cd49f66f Mon Sep 17 00:00:00 2001 From: Akihito Koriyama Date: Sat, 11 May 2024 07:48:47 +0900 Subject: [PATCH] Update src/MediaQueryLogger.php Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> --- src/MediaQueryLogger.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/MediaQueryLogger.php b/src/MediaQueryLogger.php index 77d81194..a7af9c8b 100644 --- a/src/MediaQueryLogger.php +++ b/src/MediaQueryLogger.php @@ -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));