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__); }