Skip to content

Commit 1036159

Browse files
committed
future comment
1 parent 8f80d64 commit 1036159

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

rules/DowngradePhp80/Rector/Class_/DowngradeAttributeToAnnotationRector.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,9 @@ public function refactor(Node $node): ?Node
110110
foreach ($node->attrGroups as $attrGroup) {
111111
foreach ($attrGroup->attrs as $key => $attribute) {
112112
if ($this->shouldSkipAttribute($attribute)) {
113+
// avoid error on same line
114+
// as attribute ->getStartLine() always equal with node ->getStartLine()
115+
// can't validate it, so enforce to reprint later
113116
$requireReprint = true;
114117
continue;
115118
}

0 commit comments

Comments
 (0)