Skip to content

Commit 008d166

Browse files
ArshidArshid
authored andcommitted
Support Param nodes in makeNonFinal()
1 parent 783ff15 commit 008d166

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rules/DowngradePhp85/Rector/Class_/DowngradeFinalPropertyPromotionRector.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
namespace Rector\DowngradePhp85\Rector\Class_;
66

77
use PhpParser\Builder\Property;
8-
use PhpParser\Modifiers;
98
use PhpParser\Node;
109
use PhpParser\Node\Param;
1110
use PhpParser\Node\Stmt\ClassMethod;
@@ -88,6 +87,7 @@ public function refactor(Node $node): null
8887
if (! $param->isPromoted()) {
8988
continue;
9089
}
90+
9191
if (! $this->visibilityManipulator->hasVisibility($param, Visibility::FINAL)) {
9292
continue;
9393
}

0 commit comments

Comments
 (0)