From c9fd5fdacd391e06e1d6b506403bddac8e0ce32b Mon Sep 17 00:00:00 2001 From: August Miller Date: Fri, 25 Jan 2019 18:58:18 -0800 Subject: [PATCH] Fix method name for `json_decode` Twig filter --- src/web/twig/Extension.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/web/twig/Extension.php b/src/web/twig/Extension.php index ccac7c40754..ac2a145ed18 100644 --- a/src/web/twig/Extension.php +++ b/src/web/twig/Extension.php @@ -214,7 +214,7 @@ public function getFilters(): array new \Twig_SimpleFilter('indexOf', [$this, 'indexOfFilter']), new \Twig_SimpleFilter('intersect', 'array_intersect'), new \Twig_SimpleFilter('json_encode', [$this, 'jsonEncodeFilter']), - new \Twig_SimpleFilter('json_decode', [Json::class, 'json_decode']), + new \Twig_SimpleFilter('json_decode', [Json::class, 'decode']), new \Twig_SimpleFilter('kebab', [$this, 'kebabFilter']), new \Twig_SimpleFilter('lcfirst', [$this, 'lcfirstFilter']), new \Twig_SimpleFilter('literal', [$this, 'literalFilter']),