Skip to content

Add regression fixture for single promoted property among plain params#51

Merged
TomasVotruba merged 1 commit into
mainfrom
standalone-line-promoted-property-mixed-params
Jul 19, 2026
Merged

Add regression fixture for single promoted property among plain params#51
TomasVotruba merged 1 commit into
mainfrom
standalone-line-promoted-property-mixed-params

Conversation

@TomasVotruba

Copy link
Copy Markdown
Member

Verifies StandaloneLinePromotedPropertyFixer splits all constructor params onto their own lines even when only one of them is promoted.

 public function __construct(
-    CorePermissions $security, Translator $translator, RouterInterface $router,
+    CorePermissions $security,
+    Translator $translator,
+    RouterInterface $router,
     private LeadModel $leadModel,
 ) {
 }

Behavior already worked; fixture locks it against regressions.

Locks StandaloneLinePromotedPropertyFixer behavior when only one of many constructor params is promoted: every param must end up on its own line.
@TomasVotruba
TomasVotruba merged commit bac6d69 into main Jul 19, 2026
8 checks passed
@TomasVotruba
TomasVotruba deleted the standalone-line-promoted-property-mixed-params branch July 19, 2026 21:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant