Skip to content

Commit bdc8376

Browse files
ArshidArshid
authored andcommitted
FinalPropertyPromotionRector
1 parent 0dff280 commit bdc8376

1 file changed

Lines changed: 0 additions & 3 deletions

File tree

rules/Php85/Rector/Class_/FinalPropertyPromotionRector.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
use PhpParser\Node\Stmt\ClassMethod;
1111
use PHPStan\Analyser\Scope;
1212
use PHPStan\Reflection\ClassReflection;
13-
use PHPStan\Reflection\ReflectionProvider;
1413
use Rector\BetterPhpDocParser\PhpDocInfo\PhpDocInfoFactory;
1514
use Rector\Comments\NodeDocBlock\DocBlockUpdater;
1615
use Rector\Php80\NodeAnalyzer\PhpAttributeAnalyzer;
@@ -39,7 +38,6 @@ final class FinalPropertyPromotionRector extends AbstractRector implements MinPh
3938
public function __construct(
4039
private VisibilityManipulator $visibilityManipulator,
4140
private PhpAttributeAnalyzer $phpAttributeAnalyzer,
42-
private ReflectionProvider $reflectionProvider,
4341
private readonly DocBlockUpdater $docBlockUpdater,
4442
private readonly PhpDocInfoFactory $phpDocInfoFactory,
4543
) {
@@ -163,7 +161,6 @@ private function shouldSkipClass(Class_ $class): bool
163161
private function shouldSkipParams(array $params): bool
164162
{
165163
foreach ($params as $param) {
166-
// has non-final property promotion
167164
if ($this->visibilityManipulator->hasVisibility($param, Visibility::FINAL) && $param->isPromoted()) {
168165
return true;
169166
}

0 commit comments

Comments
 (0)