Skip to content

Commit

Permalink
0.6.1
Browse files Browse the repository at this point in the history
* [*] fix `CacheHelper::jsonize()` now numeric strings will never stores as numbers. Will prevent conversion `"56.30"` to `56.3` for currency string.
  • Loading branch information
KarelWintersky committed Nov 16, 2022
1 parent e7f1e1f commit 2381acf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/CacheHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ public static function raiseFlag(string $flag, int $value = 1, $ttl = 86400)
*/
public static function jsonize($data)
{
return json_encode($data, JSON_NUMERIC_CHECK | JSON_UNESCAPED_UNICODE | JSON_PRESERVE_ZERO_FRACTION | JSON_INVALID_UTF8_SUBSTITUTE | JSON_THROW_ON_ERROR);
return json_encode($data, JSON_UNESCAPED_UNICODE | JSON_PRESERVE_ZERO_FRACTION | JSON_INVALID_UTF8_SUBSTITUTE | JSON_THROW_ON_ERROR);
}

}

0 comments on commit 2381acf

Please sign in to comment.