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

[bug] throw exception when parse closure in an array. #131

Closed
thbourlove opened this issue Nov 6, 2013 · 2 comments
Closed

[bug] throw exception when parse closure in an array. #131

thbourlove opened this issue Nov 6, 2013 · 2 comments
Assignees
Labels
Milestone

Comments

@thbourlove
Copy link

example:

<?php
$array = array(function () {
    return 0;
});

error:
Unexpected token: function, line: 2, col: 12, file:xxx.php

@ghost ghost assigned manuelpichler Nov 9, 2013
@claar
Copy link

claar commented Apr 12, 2014

Dupe of #126, though your example code is cleaner.

@manuelpichler
Copy link
Contributor

Duplicate with #126

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

3 participants