Skip to content

Conversation

@jrfnl
Copy link
Member

@jrfnl jrfnl commented Nov 11, 2019

The changes in PR #923 did not take foreach ( ...as list() ) {} into account.

Fixed now. Includes unit test.

Fixes #928
Closes #929

@jrfnl jrfnl added this to the 9.x Next milestone Nov 11, 2019
@jrfnl jrfnl requested a review from wimg November 11, 2019 13:47
@jrfnl jrfnl force-pushed the feature/928-bug-fix-forbidden-names-as-list branch from a862989 to 16bccca Compare November 11, 2019 13:49
The changes in PR 923 did not take `foreach ( ...as list() ) {}` into account.

Fixed now. Includes unit test.

Fixes 928
Closes 929
@jrfnl
Copy link
Member Author

jrfnl commented Nov 11, 2019

FYI: in an attempt to find more false positives, I've done a run of this sniff against every single test case file in the PHPCompatibility repo and haven't found any others, so 🤞

@timmillwood
Copy link
Contributor

When will this be merged?

@jrfnl
Copy link
Member Author

jrfnl commented Nov 14, 2019

When will this be merged?

Once @wimg has had a chance to review the PR.

@wimg wimg merged commit 5f2333c into develop Nov 14, 2019
@wimg wimg deleted the feature/928-bug-fix-forbidden-names-as-list branch November 14, 2019 13:43
@jrfnl jrfnl removed PR: quick merge PR only contains relatively simple changes PR: ready for review labels Dec 22, 2019
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.

Allow foreach ($array as list($key, $values))

4 participants