From 0bb49dc40fc516727d96450fb2f0fd166976af81 Mon Sep 17 00:00:00 2001 From: Ruud Kamphuis Date: Thu, 24 Oct 2024 13:37:17 +0200 Subject: [PATCH] Add return type to getDebugInfo --- src/Node/ModuleNode.php | 1 + tests/Node/ModuleTest.php | 3 +++ 2 files changed, 4 insertions(+) diff --git a/src/Node/ModuleNode.php b/src/Node/ModuleNode.php index ddb3f734622..a127a399a53 100644 --- a/src/Node/ModuleNode.php +++ b/src/Node/ModuleNode.php @@ -448,6 +448,7 @@ protected function compileDebugInfo(Compiler $compiler) $compiler ->write("/**\n") ->write(" * @codeCoverageIgnore\n") + ->write(" * @return array\n") ->write(" */\n") ->write("public function getDebugInfo(): array\n", "{\n") ->indent() diff --git a/tests/Node/ModuleTest.php b/tests/Node/ModuleTest.php index f017b483bea..97ae7bf3f6b 100644 --- a/tests/Node/ModuleTest.php +++ b/tests/Node/ModuleTest.php @@ -116,6 +116,7 @@ public function getTemplateName(): string /** * @codeCoverageIgnore + * @return array */ public function getDebugInfo(): array { @@ -206,6 +207,7 @@ public function isTraitable(): bool /** * @codeCoverageIgnore + * @return array */ public function getDebugInfo(): array { @@ -300,6 +302,7 @@ public function isTraitable(): bool /** * @codeCoverageIgnore + * @return array */ public function getDebugInfo(): array {