From 577c052aff605697cd173967751828a181cca4ad Mon Sep 17 00:00:00 2001 From: Igor Scheller Date: Fri, 29 Nov 2019 19:38:28 +0100 Subject: Twig update to 3.0.0 and Renderer type hinting --- src/Renderer/Twig/Extensions/Legacy.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/Renderer/Twig/Extensions/Legacy.php') diff --git a/src/Renderer/Twig/Extensions/Legacy.php b/src/Renderer/Twig/Extensions/Legacy.php index 41b00468..dc0c4775 100644 --- a/src/Renderer/Twig/Extensions/Legacy.php +++ b/src/Renderer/Twig/Extensions/Legacy.php @@ -22,7 +22,7 @@ class Legacy extends TwigExtension /** * @return TwigFunction[] */ - public function getFunctions() + public function getFunctions(): array { $isSafeHtml = ['is_safe' => ['html']]; return [ @@ -39,7 +39,7 @@ class Legacy extends TwigExtension /** * @return string */ - public function getPage() + public function getPage(): string { if ($this->request->has('p')) { return $this->request->get('p'); -- cgit v1.2.3-70-g09d2