Skip to content

Make blink StandaloneLinePromotedProperty a file-level fixer - #238

Merged
TomasVotruba merged 1 commit into
mainfrom
blink-standalone-line-file-level
Oct 30, 2026
Merged

TomasVotruba merged 1 commit into
mainfrom
blink-standalone-line-file-level

Conversation

@TomasVotruba

Copy link
Copy Markdown
Member

Symplify's StandaloneLinePromotedPropertyFixer is a file-level candidate: once any constructor in the file declares a promoted property, it breaks the params of every constructor in the file onto standalone lines - plain ones included.

blink gated the split per-constructor (only the promoted one), so a plain constructor sitting next to a promoted one stayed inline and diverged from PHP ECS. This changes the rule to check the file for a promoted constructor first, then reflow every __construct.

Resolves 10 of the 37 laravel parity divergences (1.20% -> ~0.87%). Verified locally against the real laravel files with the 5-set parity config. Added a file-level-trigger regression test.

Symplify's StandaloneLinePromotedPropertyFixer is a file-level candidate: once
any constructor in the file declares a promoted property, it breaks the params
of every constructor in the file onto standalone lines, plain ones included.

blink gated the split per-constructor (only promoted ones), so plain
constructors next to a promoted one stayed inline and diverged from ECS. Gate
on the file instead, then reflow every __construct. Resolves 10 of the 37
laravel parity divergences.
@TomasVotruba
TomasVotruba merged commit 83c609f into main Oct 30, 2026
21 checks passed
@TomasVotruba
TomasVotruba deleted the blink-standalone-line-file-level branch October 30, 2026 16:19
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