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

The list usage in foreach loops reports an invalid token #171

Closed
stof opened this issue Oct 1, 2014 · 3 comments
Closed

The list usage in foreach loops reports an invalid token #171

stof opened this issue Oct 1, 2014 · 3 comments
Assignees
Labels
Milestone

Comments

@stof
Copy link

stof commented Oct 1, 2014

foreach ($organizations as list($id, $name)) {
    // ...
}

Running PDepend on this code will report an error, while it is valid in PHP 5.5+:

Unexpected token: list, line: 24, col: 36, file: ....
@digilist
Copy link
Contributor

digilist commented Oct 3, 2014

I've already fixed this problem in pull request #166. Unfortunately, there was no feedback yet.

@manuelpichler manuelpichler added this to the 2.1.0 milestone Oct 7, 2014
@manuelpichler manuelpichler self-assigned this Oct 7, 2014
@manuelpichler manuelpichler modified the milestones: 2.0.3, 2.1.0 Oct 8, 2014
@manuelpichler
Copy link
Contributor

Closed together with #166

@pilgerone
Copy link

Still occurring on latest version, see phpmd/phpmd#411

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

4 participants