Skip to content

Commit 6343016

Browse files
committed
Fix Twig deprecation notice by implementing Twig_Extension_GlobalsInterface
1 parent c0b40cf commit 6343016

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Twig/Extension.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
use Symfony\Component\DependencyInjection\ContainerInterface;
1212

13-
class Extension extends \Twig_Extension
13+
class Extension extends \Twig_Extension implements \Twig_Extension_GlobalsInterface
1414
{
1515

1616
protected $legacyApplication;

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
"symfony/http-foundation": "~2.2",
2525
"doctrine/annotations": "~1.0",
2626
"webfactory/dom": "~1.0, >= 1.0.15",
27-
"twig/twig": "~1.10"
27+
"twig/twig": "^1.23"
2828

2929
}
3030

0 commit comments

Comments
 (0)