Skip to content

Commit 5008cc0

Browse files
committed
Allow Twig 3
1 parent fc8902e commit 5008cc0

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
"symfony/translation-contracts": "^2.0",
4242
"symfony/twig-bundle": "^4.2 || ^5.0",
4343
"symfony/validator": "^4.3.6 || ^5.0",
44-
"twig/twig": "^2.4.2"
44+
"twig/twig": "^2.4.2 || ^3.0"
4545
},
4646
"suggest": {
4747
"symfony/form": "To use enum form type",

tests/Bridge/Twig/Extension/EnumExtensionTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
use PHPUnit\Framework\TestCase;
99
use Symfony\Contracts\Translation\TranslatorInterface;
1010
use Twig\Environment;
11+
use Twig\Loader\LoaderInterface;
1112
use Twig\TwigFilter;
1213

1314
/**
@@ -36,7 +37,7 @@ protected function setUp()
3637

3738
public function testEnvironment()
3839
{
39-
$twig = new Environment($this->createMock(\Twig_LoaderInterface::class));
40+
$twig = new Environment($this->createMock(LoaderInterface::class));
4041
$twig->addExtension($this->extension);
4142

4243
$this->assertInstanceOf(TwigFilter::class, $twig->getFilter('enum_label'));

0 commit comments

Comments
 (0)