Skip to content

Commit

Permalink
[ci-review] Rector Rectify
Browse files Browse the repository at this point in the history
  • Loading branch information
actions-user committed Jul 12, 2024
1 parent 805177e commit 0c0980b
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

namespace Rector\Php80\Rector\ClassMethod;

use PhpParser\Node\NullableType;
use PhpParser\Comment;
use PhpParser\Node;
use PhpParser\Node\ComplexType;
Expand Down Expand Up @@ -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);
}

Expand Down

0 comments on commit 0c0980b

Please sign in to comment.