Skip to content

Commit 15f2089

Browse files
committed
[ci-review] Rector Rectify
1 parent 1781c58 commit 15f2089

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

rules/Php82/Rector/Class_/ReadOnlyClassRector.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,8 @@ public function refactor(Node $node): ?Node
8888
$this->visibilityManipulator->changeNodeVisibility($node, Visibility::READONLY);
8989

9090
$constructClassMethod = $node->getMethod(MethodName::CONSTRUCT);
91-
if ($constructClassMethod instanceof ClassMethod) {die;
91+
if ($constructClassMethod instanceof ClassMethod) {
92+
die;
9293
$this->promotedPropertyParamCleaner->cleanFromFlags($constructClassMethod->getParams());
9394
}
9495

rules/Privatization/NodeManipulator/VisibilityManipulator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ public function changeNodeVisibility(Class_ | ClassMethod | Property | ClassCons
9696
Visibility::STATIC,
9797
Visibility::ABSTRACT,
9898
Visibility::FINAL,
99-
Visibility::READONLY
99+
Visibility::READONLY,
100100
]);
101101

102102
$this->replaceVisibilityFlag($node, $visibility);

0 commit comments

Comments
 (0)