From cc29bd9507b599c264fab0639b4fd5a0ba93c3f2 Mon Sep 17 00:00:00 2001 From: Awilum Date: Sat, 19 Oct 2019 00:16:45 +0300 Subject: [PATCH] feat(admin-plugin): YAML parsing will be cached in production #263 --- flextype/parsers/Parser.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/flextype/parsers/Parser.php b/flextype/parsers/Parser.php index 0c0b9f61..12035b2f 100644 --- a/flextype/parsers/Parser.php +++ b/flextype/parsers/Parser.php @@ -62,12 +62,12 @@ class Parser /** * Dumps a PHP value to a string CONTENT. * - * @param string $input Content to parse + * @param mixed $input Content to parse * @param string $parser Parser type [frontmatter, json, yaml] * * @return mixed PHP value converted to a string CONTENT. */ - public function encode(string $input, string $parser) : string + public function encode($input, string $parser) : string { switch ($parser) { case 'frontmatter': @@ -83,7 +83,7 @@ class Parser break; default: - + break; } }