From 246ebcb3ec3eec1fb21b06050939dfcb01aa8254 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20M=C3=B6ller?= Date: Fri, 13 Dec 2024 08:29:16 +0100 Subject: [PATCH] Fix: Rename parameter --- src/Methods/NoNullableReturnTypeDeclarationRule.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Methods/NoNullableReturnTypeDeclarationRule.php b/src/Methods/NoNullableReturnTypeDeclarationRule.php index 04d26b2c..570254f7 100644 --- a/src/Methods/NoNullableReturnTypeDeclarationRule.php +++ b/src/Methods/NoNullableReturnTypeDeclarationRule.php @@ -66,9 +66,9 @@ public function processNode( ]; } - private static function hasNullableReturnType(Node\Stmt\ClassMethod $node): bool + private static function hasNullableReturnType(Node\Stmt\ClassMethod $method): bool { - $returnType = $node->getReturnType(); + $returnType = $method->getReturnType(); if ($returnType instanceof Node\NullableType) { return true;