File tree Expand file tree Collapse file tree
rules/Php85/Rector/Class_ Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1010use PhpParser \Node \Stmt \ClassMethod ;
1111use PHPStan \Analyser \Scope ;
1212use PHPStan \Reflection \ClassReflection ;
13- use PHPStan \Reflection \ReflectionProvider ;
1413use Rector \BetterPhpDocParser \PhpDocInfo \PhpDocInfoFactory ;
1514use Rector \Comments \NodeDocBlock \DocBlockUpdater ;
1615use 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 }
You can’t perform that action at this time.
0 commit comments