Skip to content

Blink: skip destructuring targets in LineLength - #345

Merged
TomasVotruba merged 1 commit into
ecsphp:mainfrom
owenvoke:blink-line-length-skip-destructuring
Nov 11, 2026
Merged

TomasVotruba merged 1 commit into
ecsphp:mainfrom
owenvoke:blink-line-length-skip-destructuring

Conversation

@owenvoke

Copy link
Copy Markdown
Contributor

Symplify's LineLengthFixer only processes array literals: a short
destructuring target ([$a, $b] = ..., foreach (... as [...])) is a
different token kind in PHP-CS-Fixer, so the PHP engine never breaks or
inlines it. The Go port treated any short [ as an array and broke
over-long destructuring targets across lines. Skip them the same way.

🤖 Generated with Claude Code

Symplify's `LineLengthFixer` only processes array literals: a short
destructuring target (`[$a, $b] = ...`, `foreach (... as [...])`) is a
different token kind in PHP-CS-Fixer, so the PHP engine never breaks or
inlines it. The Go port treated any short `[` as an array and broke
over-long destructuring targets across lines. Skip them the same way.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@TomasVotruba

Copy link
Copy Markdown
Member

Thank you 👍

@TomasVotruba
TomasVotruba merged commit 000813c into ecsphp:main Nov 11, 2026
11 of 12 checks passed
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.

2 participants