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));