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

Report use of short array syntax in PHP < 5.4 #47

Closed
MarkMaldaba opened this issue Mar 5, 2015 · 0 comments
Closed

Report use of short array syntax in PHP < 5.4 #47

MarkMaldaba opened this issue Mar 5, 2015 · 0 comments
Milestone

Comments

@MarkMaldaba
Copy link
Contributor

Short array syntax[1] was introduced in PHP 5.4 and will cause syntax errors if used in earlier versions.

It would be great if a sniff could be added to check for this!

[1] http://php.net/manual/en/language.types.array.php#language.types.array.syntax.array-func

@MarkMaldaba MarkMaldaba changed the title Add check for short array syntax. Report use of short array syntax in PHP < 5.4 Mar 5, 2015
@wimg wimg closed this as completed Jun 24, 2016
@jrfnl jrfnl added this to the 7.0 milestone Apr 29, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants