Skip to content

Commit 50c07e7

Browse files
authored
Bump PHPStan to ^2.1.32 and fix test for InlineClassRoutePrefixRector (#863)
1 parent 65b31d6 commit 50c07e7

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"require-dev": {
1111
"phpecs/phpecs": "^2.2",
1212
"phpstan/extension-installer": "^1.4",
13-
"phpstan/phpstan": "^2.1.31",
13+
"phpstan/phpstan": "^2.1.32",
1414
"phpstan/phpstan-webmozart-assert": "^2.0",
1515
"phpunit/phpunit": "^11.5",
1616
"rector/jack": "^0.2.9",

rules/CodeQuality/Rector/Class_/InlineClassRoutePrefixRector.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -234,6 +234,7 @@ public function refactor(Node $node): ?Class_
234234
// silent or "path"
235235
if ($attributeArg->name === null || $attributeArg->name->toString() === self::PATH) {
236236
unset($attribute->args[$attributeArgKey]);
237+
$attribute->args = array_values($attribute->args);
237238
}
238239
}
239240

0 commit comments

Comments
 (0)