Skip to content

Do not treat a named-argument keyword label as a switch case in indentation - #172

Merged
TomasVotruba merged 1 commit into
mainfrom
blink-named-arg-keyword-indent
Oct 8, 2026
Merged

TomasVotruba merged 1 commit into
mainfrom
blink-named-arg-keyword-indent

Conversation

@TomasVotruba

Copy link
Copy Markdown
Member

StatementIndentation treated a reserved word used as a named-argument label (confirm($x, default: false)) as a block signature, and its default: as a switch default: case. That pushed a case scope that over-indented every statement after the call by one level, to method end.

A reserved word directly before : and after ( or , is now a named-argument label (identifier), not a construct. Found via laravel parity (ConfirmableTrait et al, ~7 files); covered by a fixture.

@TomasVotruba
TomasVotruba merged commit 9572e40 into main Oct 8, 2026
19 checks passed
@TomasVotruba
TomasVotruba deleted the blink-named-arg-keyword-indent branch October 8, 2026 19:45
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