Skip to content

Commit

Permalink
Merge pull request #35 from wsromek/twig-deprecation-fix
Browse files Browse the repository at this point in the history
Replace deprecated Twig function call
  • Loading branch information
ftrrtf authored Jun 6, 2017
2 parents 2e7c22f + fa7c334 commit 7a66324
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Twig/RollbarExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,9 @@ public function __construct(
public function getFunctions()
{
return array(
'rollbarjs' => new \Twig_Function_Method(
$this,
'getInitRollbarCode',
new \Twig_SimpleFunction(
'rollbarjs',
array($this, 'getInitRollbarCode'),
array(
'needs_context' => true,
'is_safe' => array('html'),
Expand Down

0 comments on commit 7a66324

Please sign in to comment.