Skip to content

Commit

Permalink
Merge branch '5.4' into 6.4
Browse files Browse the repository at this point in the history
* 5.4:
  fix compatibility with Twig 3.12
  • Loading branch information
xabbuh committed Aug 29, 2024
2 parents 8fd821e + 04138d9 commit c16bb04
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Tests/Fixtures/Twig.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,17 +34,17 @@ protected function doDisplay(array $context, array $blocks = [])
throw new \Exception('Foobar');
}

public function getTemplateName()
public function getTemplateName(): string
{
return 'foo.twig';
}

public function getDebugInfo()
public function getDebugInfo(): array
{
return [33 => 1, 34 => 2];
}

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

0 comments on commit c16bb04

Please sign in to comment.