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 50c07e7 commit 290b5c7Copy full SHA for 290b5c7
rules/CodeQuality/Rector/Class_/InlineClassRoutePrefixRector.php
@@ -234,10 +234,11 @@ public function refactor(Node $node): ?Class_
234
// silent or "path"
235
if ($attributeArg->name === null || $attributeArg->name->toString() === self::PATH) {
236
unset($attribute->args[$attributeArgKey]);
237
- $attribute->args = array_values($attribute->args);
238
}
239
240
+ $attribute->args = array_values($attribute->args);
241
+
242
// nothing to keep, remove whole attribute
243
if ($attribute->args === []) {
244
unset($attrGroup->attrs[$attributeKey]);
0 commit comments