From 0c0980bd36989e1cea18b832b19a23f77ebde0e6 Mon Sep 17 00:00:00 2001 From: GitHub Action Date: Fri, 12 Jul 2024 08:42:27 +0000 Subject: [PATCH] [ci-review] Rector Rectify --- .../ClassMethod/AddParamBasedOnParentClassMethodRector.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/rules/Php80/Rector/ClassMethod/AddParamBasedOnParentClassMethodRector.php b/rules/Php80/Rector/ClassMethod/AddParamBasedOnParentClassMethodRector.php index b111e428e5d..f14a7d2df93 100644 --- a/rules/Php80/Rector/ClassMethod/AddParamBasedOnParentClassMethodRector.php +++ b/rules/Php80/Rector/ClassMethod/AddParamBasedOnParentClassMethodRector.php @@ -4,6 +4,7 @@ namespace Rector\Php80\Rector\ClassMethod; +use PhpParser\Node\NullableType; use PhpParser\Comment; use PhpParser\Node; use PhpParser\Node\ComplexType; @@ -261,7 +262,7 @@ private function resolveParamType(Param $param): null|Identifier|Name|ComplexTyp // this is needed to avoid reprint of invalid tokens // @see https://github.com/rectorphp/rector/issues/8712 - if ($paramType instanceof Node\NullableType) { + if ($paramType instanceof NullableType) { $paramType->type->setAttribute(AttributeKey::ORIGINAL_NODE, null); }