Skip to content

Commit

Permalink
fix compatibility with Twig 3.12
Browse files Browse the repository at this point in the history
  • Loading branch information
xabbuh committed Aug 29, 2024
1 parent 5051452 commit 04138d9
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 04138d9

Please sign in to comment.