Skip to content

Commit aeea0a5

Browse files
committed
minor symfony#58117 [VarDumper] fix compatibility with Twig 3.12 (xabbuh)
This PR was merged into the 5.4 branch. Discussion ---------- [VarDumper] fix compatibility with Twig 3.12 | Q | A | ------------- | --- | Branch? | 5.4 | Bug fix? | no | New feature? | no | Deprecations? | no | Issues | | License | MIT Commits ------- 0f2fee0 fix compatibility with Twig 3.12
2 parents e014da0 + 0f2fee0 commit aeea0a5

File tree

1 file changed

+3
-3
lines changed
  • src/Symfony/Component/VarDumper/Tests/Fixtures

1 file changed

+3
-3
lines changed

src/Symfony/Component/VarDumper/Tests/Fixtures/Twig.php

Lines changed: 3 additions & 3 deletions
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)