diff --git a/composer.json b/composer.json index e422e7fb9..606ebf49d 100644 --- a/composer.json +++ b/composer.json @@ -10,7 +10,7 @@ "require-dev": { "phpecs/phpecs": "^2.2", "phpstan/extension-installer": "^1.4", - "phpstan/phpstan": "^2.1.31", + "phpstan/phpstan": "^2.1.32", "phpstan/phpstan-webmozart-assert": "^2.0", "phpunit/phpunit": "^11.5", "rector/jack": "^0.2.9", diff --git a/rules/CodeQuality/Rector/Class_/InlineClassRoutePrefixRector.php b/rules/CodeQuality/Rector/Class_/InlineClassRoutePrefixRector.php index 23891daa6..0a4d2a8cc 100644 --- a/rules/CodeQuality/Rector/Class_/InlineClassRoutePrefixRector.php +++ b/rules/CodeQuality/Rector/Class_/InlineClassRoutePrefixRector.php @@ -234,6 +234,7 @@ public function refactor(Node $node): ?Class_ // silent or "path" if ($attributeArg->name === null || $attributeArg->name->toString() === self::PATH) { unset($attribute->args[$attributeArgKey]); + $attribute->args = array_values($attribute->args); } }