Skip to content

Handle inline if list destructure#268

Merged
sirbrillig merged 5 commits into2.xfrom
handle-inline-if-list-destructure
Aug 13, 2022
Merged

Handle inline if list destructure#268
sirbrillig merged 5 commits into2.xfrom
handle-inline-if-list-destructure

Conversation

@sirbrillig
Copy link
Copy Markdown
Owner

PHPCS has a bug where it incorrectly tokenizes the brackets around a list destructure inside an inline if statement. In this diff, we widen the conditions we consider a list opener to compensate.

Fixes #263

@sirbrillig sirbrillig marked this pull request as ready for review August 12, 2022 19:06
@sirbrillig sirbrillig merged commit a3e3a84 into 2.x Aug 13, 2022
@sirbrillig sirbrillig deleted the handle-inline-if-list-destructure branch August 13, 2022 20:28
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.

Inline if-clause with short-list false positive

1 participant