Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handle inline if list destructure #268

Merged
merged 5 commits into from
Aug 13, 2022
Merged

Conversation

sirbrillig
Copy link
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