Skip to content

Commit 93feef5

Browse files
author
RYANOLEE
committed
Allow older versions of twig 1.3 to run this package
1 parent 81ab553 commit 93feef5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Twig/WebpackManifestExtension.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
use Bluetel\WebpackManifestBundle\WebpackManifest;
55
use Twig_Extension;
6-
use Twig_Function;
6+
use Twig_SimpleFunction;
77

88
class WebpackManifestExtension extends Twig_Extension
99
{
@@ -21,11 +21,11 @@ public function __construct(WebpackManifest $webpackManifest)
2121
}
2222

2323
/**
24-
* @return Twig_Function[]
24+
* @return Twig_SimpleFunction[]
2525
*/
2626
public function getFunctions()
2727
{
28-
return array(new Twig_Function('webpack_manifest_asset', array($this, 'manifestAsset')));
28+
return array(new Twig_SimpleFunction('webpack_manifest_asset', array($this, 'manifestAsset')));
2929
}
3030

3131
/**

0 commit comments

Comments
 (0)