Skip to content

Commit

Permalink
Merge pull request #3722 from AugustMiller/am-json-decode-patch
Browse files Browse the repository at this point in the history
Fix `json_decode` Twig filter
  • Loading branch information
brandonkelly authored Jan 26, 2019
2 parents 114d0f4 + c9fd5fd commit 2ade2d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/web/twig/Extension.php
Original file line number Diff line number Diff line change
Expand Up @@ -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']),
Expand Down

0 comments on commit 2ade2d2

Please # to comment.