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

PHP 7.3: New sniff to detect references in list constructs #731

Merged
merged 1 commit into from
Sep 23, 2018

Conversation

jrfnl
Copy link
Member

@jrfnl jrfnl commented Aug 18, 2018

Array destructuring now supports reference assignments using the syntax [&$a, [$b, &$c]] = $d. The same is also supported for list().

Refs:

Now #655 has been merged, this PR can be pulled as it extends the sniff added in #655 as it needs the same basic logic.

@jrfnl
Copy link
Member Author

jrfnl commented Sep 16, 2018

Rebased & verified categorization and sniff name.

@jrfnl jrfnl force-pushed the php-7.3/new-list-reference-assignments-sniff branch from 8736b79 to 34656ce Compare September 17, 2018 09:24
> Array destructuring now supports reference assignments using the syntax `[&$a, [$b, &$c]] = $d`. The same is also supported for `list()`.

Refs:
* https://wiki.php.net/rfc/list_reference_assignment
* php/php-src@6d4de4c
* https://github.com/php/php-src/blob/9b89b09b24ffe29c2b6de24c3d9b21df4f2a9de0/UPGRADING#L58-L60
@jrfnl jrfnl force-pushed the php-7.3/new-list-reference-assignments-sniff branch from 34656ce to b767c63 Compare September 22, 2018 20:23
@wimg wimg merged commit dade128 into master Sep 23, 2018
@wimg wimg deleted the php-7.3/new-list-reference-assignments-sniff branch September 23, 2018 16:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants