Skip to content

Commit 2aa0ac9

Browse files
authored
Update rules/DowngradePhp85/Rector/Class_/DowngradeFinalPropertyPromotionRector.php
1 parent 636afa3 commit 2aa0ac9

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

rules/DowngradePhp85/Rector/Class_/DowngradeFinalPropertyPromotionRector.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,9 @@ public function refactor(Node $node): ?ClassMethod
9898
$this->addPhpDocTag($param);
9999

100100
}
101-
101+
if ($hasChanged) {
102+
return $node;
103+
}
102104
return null;
103105
}
104106

0 commit comments

Comments
 (0)