Skip to content
This repository has been archived by the owner on Mar 22, 2023. It is now read-only.

Commit

Permalink
Merge pull request #64 from Codaone/master
Browse files Browse the repository at this point in the history
Fix deprecated Twig_Filter_Method class
  • Loading branch information
benji07 authored Jan 23, 2017
2 parents fceee3e + d092d21 commit b2eaa9e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Twig/DumpyTwigFilter.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,9 @@ public function getFilters()
$optionsForRaw = array('is_safe' => array('all')); // allows raw dumping (otherwise <pre> is encoded)

return array(
'pre' => new \Twig_Filter_Method($this, 'pre', $optionsForRaw),
'dump' => new \Twig_Filter_Method($this, 'preDump', $optionsForRaw),
'dumpy' => new \Twig_Filter_Method($this, 'preYamlDump', $optionsForRaw),
'pre' => new \Twig_SimpleFilter('pre', array($this, 'pre'), $optionsForRaw),
'dump' => new \Twig_SimpleFilter('dump', array($this, 'preDump'), $optionsForRaw),
'dumpy' => new \Twig_SimpleFilter('dumpy', array($this, 'preYamlDump'), $optionsForRaw),
);
}

Expand Down

0 comments on commit b2eaa9e

Please sign in to comment.