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

unexpected 'list' (T_LIST), expecting identifier (T_STRING) #47

Closed
AndrewTemchishen opened this issue Sep 28, 2020 · 3 comments
Closed

Comments

@AndrewTemchishen
Copy link

PHP Parse error: syntax error, unexpected 'list' (T_LIST), expecting identifier (T_STRING) in /.../vendor/sociallydev/spaces-api/spaces.php on line 52

@SociallyDev
Copy link
Owner

Hello, you should check your copy. I've tested pulling from Composer & using Spaces-API on my own machine and that works fine. I've also tested the code in spaces.php for syntax & it seems to be correct.

@AndrewTemchishen
Copy link
Author

For which version of php you tested it? Try on 5.6

SociallyDev added a commit that referenced this issue Sep 28, 2020
@SociallyDev
Copy link
Owner

Looked around a bit. Looks like old PHP version didn't allow naming a method in a class as list, so I've changed the name & now it's passing on PHP 5.6!

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

2 participants