From 04138d92d7bbec95304e593069c2a8e017666d67 Mon Sep 17 00:00:00 2001 From: Christian Flothmann Date: Thu, 29 Aug 2024 10:50:20 +0200 Subject: [PATCH] fix compatibility with Twig 3.12 --- Tests/Fixtures/Twig.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Tests/Fixtures/Twig.php b/Tests/Fixtures/Twig.php index bb6e578..3d33cad 100644 --- a/Tests/Fixtures/Twig.php +++ b/Tests/Fixtures/Twig.php @@ -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__); }