From ab0b831b5dcdbfbf77cd8137d27e0d17b6dd9322 Mon Sep 17 00:00:00 2001 From: Awilum Date: Tue, 8 Sep 2020 21:07:00 +0300 Subject: [PATCH] refactor(json): update code according to coding doctrine coding standard --- src/flextype/Support/Serializers/Json.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/flextype/Support/Serializers/Json.php b/src/flextype/Support/Serializers/Json.php index 1d94ee85..0a40eff2 100644 --- a/src/flextype/Support/Serializers/Json.php +++ b/src/flextype/Support/Serializers/Json.php @@ -9,6 +9,7 @@ declare(strict_types=1); namespace Flextype\Support\Serializers; +use Flextype\Component\Strings\Strings; use RuntimeException; use function defined; use function json_decode; @@ -107,6 +108,6 @@ class Json protected function getCacheID($input) { - return md5('json' . $input); + Strings::hash('json' . $input); } }