From 1a98517e4bebd069dedacbbb1d297bbf37352732 Mon Sep 17 00:00:00 2001 From: Awilum Date: Tue, 8 Sep 2020 21:07:07 +0300 Subject: [PATCH] refactor(yaml): update code according to coding doctrine coding standard --- src/flextype/Support/Serializers/Yaml.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/flextype/Support/Serializers/Yaml.php b/src/flextype/Support/Serializers/Yaml.php index 545448ce..84de060f 100644 --- a/src/flextype/Support/Serializers/Yaml.php +++ b/src/flextype/Support/Serializers/Yaml.php @@ -13,6 +13,7 @@ use RuntimeException; use Symfony\Component\Yaml\Exception\DumpException as SymfonyYamlDumpException; use Symfony\Component\Yaml\Exception\ParseException as SymfonyYamlParseException; use Symfony\Component\Yaml\Yaml as SymfonyYaml; +use Flextype\Component\Strings\Strings; use function error_reporting; use function function_exists; use function ini_get; @@ -141,6 +142,6 @@ class Yaml protected function getCacheID($input) { - return md5('yaml' . $input); + Strings::hash('yaml' . $input); } }