From 822bd652559e09d225d67e5ac304169b5a40ef29 Mon Sep 17 00:00:00 2001 From: Peter van der Wal Date: Sun, 26 Feb 2023 09:27:15 +0100 Subject: [PATCH] Add return type to getTests() method The return type was missing, causing Method "Twig\Extension\ExtensionInterface::getTests()" might add "array" as a native return type declaration in the future. Do the same in implementation "Lelyfoto\Twig\InstanceOf\Extension\InstanceOfExtension" now to avoid errors or add an explicit @return annotation to suppress this message. messages in bin/console output --- Extension/InstanceOfExtension.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Extension/InstanceOfExtension.php b/Extension/InstanceOfExtension.php index 31b6b24..4a1eb4f 100644 --- a/Extension/InstanceOfExtension.php +++ b/Extension/InstanceOfExtension.php @@ -10,7 +10,7 @@ class InstanceOfExtension extends AbstractExtension { - public function getTests() + public function getTests(): array { return [ new TwigTest(