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

Parse error: syntax error, unexpected '=' in \vendor\illuminate\database\Query\Builder.php on line 238 #54

Open
kuvic16 opened this issue May 26, 2019 · 3 comments

Comments

@kuvic16
Copy link

kuvic16 commented May 26, 2019

Hello,

I've followed all steps based on the documentation and blog post (https://tareq.co/2016/08/how-to-use-wp-eloquent-in-your-plugin/). But I got the following error.

Parse error: syntax error, unexpected '=' in \vendor\illuminate\database\Query\Builder.php on line 238
Is it PHP version related?

Thanks.

@kuvic16 kuvic16 changed the title Parse error: syntax error, unexpected '=' in F:\pProjects\wordpress\wp-content\plugins\test\vendor\illuminate\database\Query\Builder.php on line 238 Parse error: syntax error, unexpected '=' in \vendor\illuminate\database\Query\Builder.php on line 238 May 26, 2019
@Tofandel
Copy link

Tofandel commented Jun 5, 2019

Yes it is, argument unpacking is used meaning php7.1 required

@kuvic16
Copy link
Author

kuvic16 commented Jun 10, 2019

So, can't we use this library under php 7?

@saeidraei
Copy link

saeidraei commented Feb 2, 2020

@kuvic16
I have fixed this issue in my fork you can use it :https://github.com/saeidraei/wp-eloquent

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

3 participants