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

Cannot parse files which initialize static variable to array #4

Open
pinterface opened this issue Apr 20, 2014 · 0 comments
Open

Cannot parse files which initialize static variable to array #4

pinterface opened this issue Apr 20, 2014 · 0 comments

Comments

@pinterface
Copy link

function a() { static $var = [1, 2, 3]; }
Results in:
PHP Fatal error: Uncaught exception 'Exception' with message 'Invalid 'static' decalaraion found: '2'

class C {
static $m = [1, 2, 3, ];
}
does not throw the Exception, but is considered unparseable.

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

No branches or pull requests

1 participant