We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8f80d64 commit 1036159Copy full SHA for 1036159
rules/DowngradePhp80/Rector/Class_/DowngradeAttributeToAnnotationRector.php
@@ -110,6 +110,9 @@ public function refactor(Node $node): ?Node
110
foreach ($node->attrGroups as $attrGroup) {
111
foreach ($attrGroup->attrs as $key => $attribute) {
112
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
116
$requireReprint = true;
117
continue;
118
}
0 commit comments