Skip to content

Commit 33c2f92

Browse files
committed
note
1 parent 5aaeb3d commit 33c2f92

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

rules/Php82/Rector/Class_/ReadOnlyClassRector.php

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,7 @@ final class ReadOnlyClassRector extends AbstractRector implements MinPhpVersionI
2525
public function __construct(
2626
private readonly ClassAnalyzer $classAnalyzer,
2727
private readonly VisibilityManipulator $visibilityManipulator
28-
)
29-
{
28+
) {
3029
}
3130

3231
public function getRuleDefinition(): RuleDefinition
@@ -81,6 +80,11 @@ public function refactor(Node $node): ?Node
8180
return $node;
8281
}
8382

83+
public function provideMinPhpVersion(): int
84+
{
85+
return PhpVersionFeature::READONLY_CLASS;
86+
}
87+
8488
private function shouldSkip(Class_ $node): bool
8589
{
8690
if ($this->classAnalyzer->isAnonymousClass($node)) {
@@ -99,9 +103,4 @@ private function shouldSkip(Class_ $node): bool
99103

100104
return false;
101105
}
102-
103-
public function provideMinPhpVersion(): int
104-
{
105-
return PhpVersionFeature::READONLY_CLASS;
106-
}
107106
}

0 commit comments

Comments
 (0)