From 087a327a6a704ab8e415fa0056dc8798d545bbb3 Mon Sep 17 00:00:00 2001 From: Vildan Bina Date: Wed, 4 Dec 2024 16:16:00 +0100 Subject: [PATCH] add JSON_PRESERVE_ZERO_FRACTION to json_encode options --- src/Handlers/HMAC/Hmac.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Handlers/HMAC/Hmac.php b/src/Handlers/HMAC/Hmac.php index 5b3befb..09d1636 100644 --- a/src/Handlers/HMAC/Hmac.php +++ b/src/Handlers/HMAC/Hmac.php @@ -51,7 +51,7 @@ public function base64Data($data = null) if (is_array($data)) { $data = mb_convert_encoding( - json_encode($data, JSON_UNESCAPED_SLASHES | JSON_UNESCAPED_UNICODE), + json_encode($data, JSON_UNESCAPED_SLASHES | JSON_UNESCAPED_UNICODE | JSON_PRESERVE_ZERO_FRACTION), 'UTF-8', 'auto' );