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

Closure in an array support -- Unexpected token: function #126

Closed
claar opened this issue Oct 10, 2013 · 0 comments
Closed

Closure in an array support -- Unexpected token: function #126

claar opened this issue Oct 10, 2013 · 0 comments
Assignees
Labels
Milestone

Comments

@claar
Copy link

claar commented Oct 10, 2013

pdepend 1.1.1 can't handle closures inside an array:

$a = array(1 ,function() { echo 'hi'; });
$a[1]();

gives:

The following error occured:
Unexpected token: function, line: 3, col: 15, file: /tmp/pd/pd.php.
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

2 participants