Skip to content

Separate keyword-typed properties in blink class attribute spacing - #168

Merged
TomasVotruba merged 1 commit into
mainfrom
blink-class-attr-sep-typed-property
Oct 8, 2026
Merged

TomasVotruba merged 1 commit into
mainfrom
blink-class-attr-sep-typed-property

Conversation

@TomasVotruba

Copy link
Copy Markdown
Member

ClassAttributesSeparation did not recognise a property whose type is a keyword (e.g. private array $b, private static $c): the member-type classifier hit the keyword switch's default and returned 'unknown', so no blank line was inserted before it.

Keyword types now fall through to the variable scan, so such properties are classified as properties and separated by one blank line, matching ECS.

Found via the rectorphp/rector parity run, where it accounted for the large majority of divergences (blink was collapsing blank lines between typed properties). Covered by a fixture.

@TomasVotruba
TomasVotruba enabled auto-merge (squash) October 8, 2026 17:12
@TomasVotruba
TomasVotruba merged commit 9430338 into main Oct 8, 2026
19 checks passed
@TomasVotruba
TomasVotruba deleted the blink-class-attr-sep-typed-property branch October 8, 2026 17:14
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