Skip to content

Commit

Permalink
add JSON_PRESERVE_ZERO_FRACTION to json_encode options
Browse files Browse the repository at this point in the history
  • Loading branch information
vildanbina committed Dec 4, 2024
1 parent 0cebe5b commit 087a327
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Handlers/HMAC/Hmac.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'
);
Expand Down

0 comments on commit 087a327

Please sign in to comment.