Skip to content

Commit c16bb04

Browse files
committed
Merge branch '5.4' into 6.4
* 5.4: fix compatibility with Twig 3.12
2 parents 8fd821e + 04138d9 commit c16bb04

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Tests/Fixtures/Twig.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -34,17 +34,17 @@ protected function doDisplay(array $context, array $blocks = [])
3434
throw new \Exception('Foobar');
3535
}
3636

37-
public function getTemplateName()
37+
public function getTemplateName(): string
3838
{
3939
return 'foo.twig';
4040
}
4141

42-
public function getDebugInfo()
42+
public function getDebugInfo(): array
4343
{
4444
return [33 => 1, 34 => 2];
4545
}
4646

47-
public function getSourceContext()
47+
public function getSourceContext(): Twig\Source
4848
{
4949
return new Twig\Source(" foo bar\n twig source\n\n", 'foo.twig', $this->path ?: __FILE__);
5050
}

0 commit comments

Comments
 (0)