File tree Expand file tree Collapse file tree 1 file changed +6
-7
lines changed
rules/Php82/Rector/Class_ Expand file tree Collapse file tree 1 file changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -25,8 +25,7 @@ final class ReadOnlyClassRector extends AbstractRector implements MinPhpVersionI
25
25
public function __construct (
26
26
private readonly ClassAnalyzer $ classAnalyzer ,
27
27
private readonly VisibilityManipulator $ visibilityManipulator
28
- )
29
- {
28
+ ) {
30
29
}
31
30
32
31
public function getRuleDefinition (): RuleDefinition
@@ -81,6 +80,11 @@ public function refactor(Node $node): ?Node
81
80
return $ node ;
82
81
}
83
82
83
+ public function provideMinPhpVersion (): int
84
+ {
85
+ return PhpVersionFeature::READONLY_CLASS ;
86
+ }
87
+
84
88
private function shouldSkip (Class_ $ node ): bool
85
89
{
86
90
if ($ this ->classAnalyzer ->isAnonymousClass ($ node )) {
@@ -99,9 +103,4 @@ private function shouldSkip(Class_ $node): bool
99
103
100
104
return false ;
101
105
}
102
-
103
- public function provideMinPhpVersion (): int
104
- {
105
- return PhpVersionFeature::READONLY_CLASS ;
106
- }
107
106
}
You can’t perform that action at this time.
0 commit comments