From cb17c53b3507bec638dadc6f2c39106c93649c85 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20M=C3=B6ller?= Date: Fri, 13 Dec 2024 07:45:39 +0100 Subject: [PATCH] Fix: Add return type declaration --- src/Methods/NoParameterWithContainerTypeDeclarationRule.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Methods/NoParameterWithContainerTypeDeclarationRule.php b/src/Methods/NoParameterWithContainerTypeDeclarationRule.php index 5ea40a67..639441a9 100644 --- a/src/Methods/NoParameterWithContainerTypeDeclarationRule.php +++ b/src/Methods/NoParameterWithContainerTypeDeclarationRule.php @@ -85,7 +85,7 @@ public function processNode( return \array_values(\array_reduce( $node->params, - function (array $errors, Node\Param $node) use ($scope, $containingClass, $methodName) { + function (array $errors, Node\Param $node) use ($scope, $containingClass, $methodName): array { $type = $node->type; if (!$type instanceof Node\Name) {