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

Support single-line multi-value arrays in array-destructing #91

Conversation

windaishi
Copy link
Contributor

@windaishi windaishi commented Jan 19, 2024

Support single line multi value array in array destructing

This syntax is now allowed:

[$controllerObject, $method] = $event->getController();

Without my change the Sniff would disallow the single line array.

@windaishi windaishi changed the title Support single line multi value array in array destructing Support single-line multi-value arrays in array destructing Jan 19, 2024
@windaishi windaishi changed the title Support single-line multi-value arrays in array destructing Support single-line multi-value arrays in array-destructing Jan 19, 2024
@svenmuennich svenmuennich merged commit e41c5c8 into master Jan 22, 2024
4 checks passed
@svenmuennich svenmuennich deleted the windaishi/support-single-line-multi-value-array-in-array-destructing branch January 22, 2024 08:34
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