Skip to content

Commit

Permalink
Fix method name for json_decode Twig filter
Browse files Browse the repository at this point in the history
  • Loading branch information
AugustMiller committed Jan 26, 2019
1 parent 48417b9 commit c9fd5fd
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 c9fd5fd

Please # to comment.