From c83d84ef37f4c392902f9020f5b1c85e4c5b122d Mon Sep 17 00:00:00 2001 From: RJ Date: Sun, 25 Jun 2023 03:48:33 +0800 Subject: [PATCH] Fixes Twig error on extension class and update gitignore --- .gitignore | 3 ++- app/Helper/Twig/GlobalExtension.php | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 9393dc9..74e53fe 100644 --- a/.gitignore +++ b/.gitignore @@ -3,4 +3,5 @@ Logs/ vendor/ Simply/ .idea/ -node_modules/ \ No newline at end of file +node_modules/ +composer.lock \ No newline at end of file diff --git a/app/Helper/Twig/GlobalExtension.php b/app/Helper/Twig/GlobalExtension.php index a5832e7..c14ba35 100644 --- a/app/Helper/Twig/GlobalExtension.php +++ b/app/Helper/Twig/GlobalExtension.php @@ -7,7 +7,7 @@ class GlobalExtension extends AbstractExtension implements GlobalsInterface { - public function getGlobals() + public function getGlobals(): array { return [ 'text' => 'sample text',